次の方法で共有


BuildServerExtensions.GetDefaultSourceProvider Method

This extension method for IBuildDefinition retuns the first source provider for the definition. If no source provider is listed, an empty TFVC provider is returned.

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetDefaultSourceProvider ( _
    definition As IBuildDefinition _
) As IBuildDefinitionSourceProvider
public static IBuildDefinitionSourceProvider GetDefaultSourceProvider(
    this IBuildDefinition definition
)
[ExtensionAttribute]
public:
static IBuildDefinitionSourceProvider^ GetDefaultSourceProvider(
    IBuildDefinition^ definition
)
static member GetDefaultSourceProvider : 
        definition:IBuildDefinition -> IBuildDefinitionSourceProvider
public static function GetDefaultSourceProvider(
    definition : IBuildDefinition
) : IBuildDefinitionSourceProvider

Parameters

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildDefinitionSourceProvider

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IBuildDefinition. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

BuildServerExtensions Class

Microsoft.TeamFoundation.Build.Client Namespace