BuildServerExtensions.CreateSourceProvider Method
Namespace: Microsoft.TeamFoundation.Build.Client
Assembly: Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateSourceProvider ( _
definition As IBuildDefinition, _
name As String, _
supportedTriggers As DefinitionTriggerType _
) As IBuildDefinitionSourceProvider
public static IBuildDefinitionSourceProvider CreateSourceProvider(
this IBuildDefinition definition,
string name,
DefinitionTriggerType supportedTriggers
)
[ExtensionAttribute]
public:
static IBuildDefinitionSourceProvider^ CreateSourceProvider(
IBuildDefinition^ definition,
String^ name,
DefinitionTriggerType supportedTriggers
)
static member CreateSourceProvider :
definition:IBuildDefinition *
name:string *
supportedTriggers:DefinitionTriggerType -> IBuildDefinitionSourceProvider
public static function CreateSourceProvider(
definition : IBuildDefinition,
name : String,
supportedTriggers : DefinitionTriggerType
) : IBuildDefinitionSourceProvider
Parameters
- definition
Type: Microsoft.TeamFoundation.Build.Client.IBuildDefinition
- name
Type: System.String
- supportedTriggers
Type: Microsoft.TeamFoundation.Build.Client.DefinitionTriggerType
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.