共用方式為


IVsSccOpenFromSourceControl.GetNamespaceExtensionInformation Method

Retrieves the source control Namespace Extension (NSE) information for use in Open dialog boxes..

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

Syntax

'宣告
Function GetNamespaceExtensionInformation ( _
    vsofsdDlg As Integer, _
    <OutAttribute> ByRef pbstrNamespaceGUID As String, _
    <OutAttribute> ByRef pbstrTrayDisplayName As String, _
    <OutAttribute> ByRef pbstrProtocolPrefix As String _
) As Integer
'用途
Dim instance As IVsSccOpenFromSourceControl
Dim vsofsdDlg As Integer
Dim pbstrNamespaceGUID As String
Dim pbstrTrayDisplayName As String
Dim pbstrProtocolPrefix As String
Dim returnValue As Integer

returnValue = instance.GetNamespaceExtensionInformation(vsofsdDlg, _
    pbstrNamespaceGUID, pbstrTrayDisplayName, _
    pbstrProtocolPrefix)
int GetNamespaceExtensionInformation(
    int vsofsdDlg,
    out string pbstrNamespaceGUID,
    out string pbstrTrayDisplayName,
    out string pbstrProtocolPrefix
)
int GetNamespaceExtensionInformation(
    [InAttribute] int vsofsdDlg, 
    [OutAttribute] String^% pbstrNamespaceGUID, 
    [OutAttribute] String^% pbstrTrayDisplayName, 
    [OutAttribute] String^% pbstrProtocolPrefix
)
abstract GetNamespaceExtensionInformation : 
        vsofsdDlg:int * 
        pbstrNamespaceGUID:string byref * 
        pbstrTrayDisplayName:string byref * 
        pbstrProtocolPrefix:string byref -> int 
function GetNamespaceExtensionInformation(
    vsofsdDlg : int, 
    pbstrNamespaceGUID : String, 
    pbstrTrayDisplayName : String, 
    pbstrProtocolPrefix : String
) : int

Parameters

  • pbstrNamespaceGUID
    Type: System.String%
    [out] Returns the GUID (in string form) of the NSE allowing the dialog boxes to explore the NSE space.
  • pbstrTrayDisplayName
    Type: System.String%
    [out] Returns the display name of the NSE (which can appear in the Places section of the Window border of the dialog boxes).
  • pbstrProtocolPrefix
    Type: System.String%
    [out] Returns the NSE protocol prefix (for example, "msss://").

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns E_NOTIMPL or an error code.

Remarks

The information returned is based on the type of dialog box that will be opened.

COM Signature

From ivssccopenfromsourcecontrol.idl

HRESULT GetNamespaceExtensionInformation(
   [in] VSOPENFROMSCCDLG vsofsdDlg,
   [out] BSTR *pbstrNamespaceGUID,
   [out] BSTR *pbstrTrayDisplayName,
   [out] BSTR *pbstrProtocolPrefix
);

This method doesn't actually present any dialog boxes; it only provides information that will be useful in the specified type of dialog box.

.NET Framework Security

See Also

Reference

IVsSccOpenFromSourceControl Interface

IVsSccOpenFromSourceControl Members

Microsoft.VisualStudio.Shell.Interop Namespace