Partager via


DTE2.SourceControl Property

Definition

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

public:
 property EnvDTE::SourceControl ^ SourceControl { EnvDTE::SourceControl ^ get(); };
public:
 property EnvDTE::SourceControl ^ SourceControl { EnvDTE::SourceControl ^ get(); };
[System.Runtime.InteropServices.DispId(242)]
public EnvDTE.SourceControl SourceControl { [System.Runtime.InteropServices.DispId(242)] get; }
[<System.Runtime.InteropServices.DispId(242)>]
[<get: System.Runtime.InteropServices.DispId(242)>]
member this.SourceControl : EnvDTE.SourceControl
Public ReadOnly Property SourceControl As SourceControl

Property Value

A SourceControl object.

Implements

Attributes

Examples

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

Applies to