IVsSccProjectProviderBinding.GetProviderSession Method
Returns a session object for a Version API (VAPI)-style source control package.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function GetProviderSession ( _
<OutAttribute> ByRef punkSession As Object _
) As Integer
'用途
Dim instance As IVsSccProjectProviderBinding
Dim punkSession As Object
Dim returnValue As Integer
returnValue = instance.GetProviderSession(punkSession)
int GetProviderSession(
out Object punkSession
)
int GetProviderSession(
[OutAttribute] Object^% punkSession
)
abstract GetProviderSession :
punkSession:Object byref -> int
function GetProviderSession(
punkSession : Object
) : int
Parameters
- punkSession
Type: System.Object%
[out] A session object to be used with a VAPI-style source control package.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From ivssccprojectproviderbinding.idl
HRESULT GetProviderSession(
[out, retval] IUnknown **punkSession
);
The session object is used to create access to a VAPI-style source control package.
.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
IVsSccProjectProviderBinding Interface