IVsProjectUpgradeViaFactory.GetSccInfo Method
Gets source code control information.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function GetSccInfo ( _
bstrProjectFileName As String, _
<OutAttribute> ByRef pbstrSccProjectName As String, _
<OutAttribute> ByRef pbstrSccAuxPath As String, _
<OutAttribute> ByRef pbstrSccLocalPath As String, _
<OutAttribute> ByRef pbstrProvider As String _
) As Integer
'用途
Dim instance As IVsProjectUpgradeViaFactory
Dim bstrProjectFileName As String
Dim pbstrSccProjectName As String
Dim pbstrSccAuxPath As String
Dim pbstrSccLocalPath As String
Dim pbstrProvider As String
Dim returnValue As Integer
returnValue = instance.GetSccInfo(bstrProjectFileName, _
pbstrSccProjectName, pbstrSccAuxPath, _
pbstrSccLocalPath, pbstrProvider)
int GetSccInfo(
string bstrProjectFileName,
out string pbstrSccProjectName,
out string pbstrSccAuxPath,
out string pbstrSccLocalPath,
out string pbstrProvider
)
int GetSccInfo(
[InAttribute] String^ bstrProjectFileName,
[OutAttribute] String^% pbstrSccProjectName,
[OutAttribute] String^% pbstrSccAuxPath,
[OutAttribute] String^% pbstrSccLocalPath,
[OutAttribute] String^% pbstrProvider
)
abstract GetSccInfo :
bstrProjectFileName:string *
pbstrSccProjectName:string byref *
pbstrSccAuxPath:string byref *
pbstrSccLocalPath:string byref *
pbstrProvider:string byref -> int
function GetSccInfo(
bstrProjectFileName : String,
pbstrSccProjectName : String,
pbstrSccAuxPath : String,
pbstrSccLocalPath : String,
pbstrProvider : String
) : int
Parameters
- bstrProjectFileName
Type: System.String
[in] Name of the project file.
- pbstrSccProjectName
Type: System.String%
[out] Name of the source control project.
- pbstrSccAuxPath
Type: System.String%
[out] Auxiliary path to the source control depot.
- pbstrSccLocalPath
Type: System.String%
[out] Local path to the source control depot.
- pbstrProvider
Type: System.String%
[out] Source control provider.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From vsshell80.idl:
HRESULT GetSccInfo(
[in] BSTR bstrProjectFileName,
[out] BSTR* pbstrSccProjectName,
[out] BSTR* pbstrSccAuxPath,
[out] BSTR* pbstrSccLocalPath,
[out] BSTR* pbstrProvider
);
.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.
See Also
Reference
IVsProjectUpgradeViaFactory Interface