IVsPropertyFileOut.WriteSzAsBSTR Method
Write out a null-terminated string property value as a BSTR.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function WriteSzAsBSTR ( _
szPropertyName As String, _
szValue As String, _
szLineComment As String _
) As Integer
'使用
Dim instance As IVsPropertyFileOut
Dim szPropertyName As String
Dim szValue As String
Dim szLineComment As String
Dim returnValue As Integer
returnValue = instance.WriteSzAsBSTR(szPropertyName, _
szValue, szLineComment)
int WriteSzAsBSTR(
string szPropertyName,
string szValue,
string szLineComment
)
int WriteSzAsBSTR(
[InAttribute] String^ szPropertyName,
[InAttribute] String^ szValue,
[InAttribute] String^ szLineComment
)
function WriteSzAsBSTR(
szPropertyName : String,
szValue : String,
szLineComment : String
) : int
Parameters
szPropertyName
Type: System.String[in] String containing the property name.
szValue
Type: System.String[in] String containing the property's value.
szLineComment
Type: System.String[in] An optional string containing a comment.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsPropertyStreamOut.WriteSzAsBSTR(String, String, String)
Remarks
COM Signature
From vsshell.idl:
[C++]++++-
HRESULT IVsPropertyFileOut::WriteSzAsBSTR(
[in] LPCOLESTR szPropertyName,
[in] LPCOLESTR szValue,
[in, optional] LPCOLESTR szLineComment
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.