BuildServerExtensions.SetSourceProvider Method
This extension method should no longer be used. It is here for backwards compatibility only.
Namespace: Microsoft.TeamFoundation.Build.Client
Assembly: Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetSourceProvider ( _
definition As IBuildDefinition, _
sourceProvider As IBuildDefinitionSourceProvider _
)
public static void SetSourceProvider(
this IBuildDefinition definition,
IBuildDefinitionSourceProvider sourceProvider
)
[ExtensionAttribute]
public:
static void SetSourceProvider(
IBuildDefinition^ definition,
IBuildDefinitionSourceProvider^ sourceProvider
)
static member SetSourceProvider :
definition:IBuildDefinition *
sourceProvider:IBuildDefinitionSourceProvider -> unit
public static function SetSourceProvider(
definition : IBuildDefinition,
sourceProvider : IBuildDefinitionSourceProvider
)
Parameters
- definition
Type: Microsoft.TeamFoundation.Build.Client.IBuildDefinition
- sourceProvider
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.