共用方式為


IVsSccProjectProviderBinding.GetProviderBinding Method

Determines if this project requires a specific source control package or if the project should be put under source control.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣告
Function GetProviderBinding ( _
    <OutAttribute> pvscpbBinding As VSSCCPROVIDERBINDING() _
) As Integer
'用途
Dim instance As IVsSccProjectProviderBinding
Dim pvscpbBinding As VSSCCPROVIDERBINDING()
Dim returnValue As Integer

returnValue = instance.GetProviderBinding(pvscpbBinding)
int GetProviderBinding(
    VSSCCPROVIDERBINDING[] pvscpbBinding
)
int GetProviderBinding(
    [OutAttribute] array<VSSCCPROVIDERBINDING>^ pvscpbBinding
)
abstract GetProviderBinding : 
        pvscpbBinding:VSSCCPROVIDERBINDING[] byref -> int 
function GetProviderBinding(
    pvscpbBinding : VSSCCPROVIDERBINDING[]
) : int

Parameters

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 GetProviderBinding(
   [out, retval] VSSCCPROVIDERBINDING* pvscpbBinding
);

If a project requires a specific source control package, then it should implement the IVsSccProjectProviderBinding interface and return the VSSCC_PB_CUSTOM value from this method.

.NET Framework Security

See Also

Reference

IVsSccProjectProviderBinding Interface

IVsSccProjectProviderBinding Members

Microsoft.VisualStudio.Shell.Interop Namespace