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)

SourceControl SourceControl { get; }

Property Value

Type: EnvDTE.SourceControl
A SourceControl object.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft