Share via


DTE2.SourceControl Property

Gets a SourceControl object that allows you to manipulate the source code control state of the file behind the object.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
ReadOnly Property SourceControl As SourceControl
'Usage
Dim instance As DTE2 
Dim value As SourceControl 

value = instance.SourceControl
SourceControl SourceControl { get; }
property SourceControl^ SourceControl {
    SourceControl^ get ();
}
function get SourceControl () : SourceControl

Property Value

Type: EnvDTE.SourceControl
A SourceControl object.

Implements

_DTE.SourceControl

Examples

Sub SourceControlExample()
  MsgBox(DTE2.SourceControl.DTE)
End Sub

.NET Framework Security

See Also

Reference

DTE2 Interface

DTE2 Members

SourceControl Overload

EnvDTE80 Namespace