IVsPropertyFileOut.WriteSzAsBSTR(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Implements
Remarks
COM Signature
From vsshell.idl:
[C++]++++-
HRESULT IVsPropertyFileOut::WriteSzAsBSTR(
[in] LPCOLESTR szPropertyName,
[in] LPCOLESTR szValue,
[in, optional] LPCOLESTR szLineComment
);