Поделиться через


IVsLibrary2.GetSeparatorString Method

Returns the string used to separate symbols for this type of Browse Container.

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

Syntax

'Declaration
Function GetSeparatorString ( _
    pszSeparator As IntPtr _
) As Integer
int GetSeparatorString(
    IntPtr pszSeparator
)
int GetSeparatorString(
    [InAttribute] IntPtr pszSeparator
)
abstract GetSeparatorString : 
        pszSeparator:IntPtr -> int 
function GetSeparatorString(
    pszSeparator : IntPtr
) : int

Parameters

  • pszSeparator
    Type: System.IntPtr
    [out] Pointer to a null-terminated string containing the language specific scope operator.

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 vsshell80.idl:

HRESULT GetSeparatorString([out, string] LPCWSTR *pszSeparator);

Returns the scope operator used to separate namespaces, classes and members, such as "::" for Visual C++ and "." for Visual Basic and Visual C#.

Note

The string is created by the IVsLibrary2 object and the string must persist for the life of the IVsLibrary2 object.

If you are implementing this interface in managed code and you need to have the string disposed of by the caller, implement the IVsCoTaskMemFreeMyStrings interface on the IVsLibrary2 interface.

.NET Framework Security

See Also

Reference

IVsLibrary2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace