다음을 통해 공유


IVsPropertyStreamOut.Write(String, Object, String) Method

Definition

Writes a property name, value, and comment to the stream.

int Write(std::wstring const & szPropertyName, winrt::Windows::Foundation::IInspectable const & varValue, std::wstring const & szLineComment);
public int Write (string szPropertyName, object varValue, string szLineComment);
abstract member Write : string * obj * string -> int
Public Function Write (szPropertyName As String, varValue As Object, Optional szLineComment As String) As Integer

Parameters

szPropertyName
String

[in] String containing the name of the property.

varValue
Object

[in] A VARIANT containing the property 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::Write(  
   [in] LPCOLESTR szPropertyName,   
   [in] VARIANT varValue,   
   [in, optional] LPCOLESTR szLineComment  
);  

Applies to