IVsLibrary2.GetSeparatorString(IntPtr) 方法

定义

返回用于分隔此类型的浏览容器的符号的字符串。Returns the string used to separate symbols for this type of Browse Container.

public:
 int GetSeparatorString(IntPtr pszSeparator);
public int GetSeparatorString (IntPtr pszSeparator);
abstract member GetSeparatorString : nativeint -> int
Public Function GetSeparatorString (pszSeparator As IntPtr) As Integer

参数

pszSeparator
IntPtr

弄指向以 null 结尾的字符串的指针,该字符串包含语言特定的作用域运算符。[out] Pointer to a null-terminated string containing the language specific scope operator.

返回

Int32

如果该方法成功,则它会返回 S_OKIf the method succeeds, it returns S_OK. 如果该方法失败,则会返回错误代码。If it fails, it returns an error code.

注解

COM 签名COM Signature

从 vsshell80:From vsshell80.idl:

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

返回用于分隔命名空间、类和成员的作用域运算符,如 Visual C++Visual C++ 和的 "::"。 Visual BasicVisual Basic Visual C#Visual C#Returns the scope operator used to separate namespaces, classes and members, such as "::" for Visual C++Visual C++ and "." for Visual BasicVisual Basic and Visual C#Visual C#.

备注

字符串由对象创建,该字符串 IVsLibrary2 必须在对象的生存期内保持不变 IVsLibrary2The string is created by the IVsLibrary2 object and the string must persist for the life of the IVsLibrary2 object.

如果要在托管代码中实现此接口,并且需要由调用方释放的字符串,请 IVsCoTaskMemFreeMyStrings 在接口上实现接口 IVsLibrary2If 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.

适用于