Compartir a través de


IVsPropertyStreamOut.WriteSzAsBSTR(String, String, String) Method

Definition

Write out a null-terminated string property value as a BSTR.

int WriteSzAsBSTR(std::wstring const & szPropertyName, std::wstring const & szValue, std::wstring const & szLineComment);
public int WriteSzAsBSTR (string szPropertyName, string szValue, string szLineComment);
abstract member WriteSzAsBSTR : string * string * string -> int
Public Function WriteSzAsBSTR (szPropertyName As String, szValue As String, Optional szLineComment As String) As Integer

Parameters

szPropertyName
String

[in] String containing the property name.

szValue
String

[in] String containing the property's value.

szLineComment
String

[in] An optional string containing a comment.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

[C++]

HRESULT IVsPropertyStreamOut::WriteSzAsBSTR(  
   [in] LPCOLESTR szPropertyName,   
   [in] LPCOLESTR szValue,   
   [in, optional] LPCOLESTR szLineComment  
);  

Applies to