Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Writes a property name, value, and comment to the stream.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function Write ( _
szPropertyName As String, _
varValue As Object, _
szLineComment As String _
) As Integer
'Usage
Dim instance As IVsPropertyFileOut
Dim szPropertyName As String
Dim varValue As Object
Dim szLineComment As String
Dim returnValue As Integer
returnValue = instance.Write(szPropertyName, _
varValue, szLineComment)
int Write(
string szPropertyName,
Object varValue,
string szLineComment
)
int Write(
[InAttribute] String^ szPropertyName,
[InAttribute] Object^ varValue,
[InAttribute] String^ szLineComment
)
abstract Write :
szPropertyName:string *
varValue:Object *
szLineComment:string -> int
function Write(
szPropertyName : String,
varValue : Object,
szLineComment : String
) : int
Parameters
- szPropertyName
Type: System.String
[in] String containing the name of the property.
- varValue
Type: System.Object
[in] A VARIANT containing the property 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.Write(String, Object, String)
Remarks
COM Signature
From vsshell.idl:
[C++]
HRESULT IVsPropertyFileOut::Write(
[in] LPCOLESTR szPropertyName,
[in] VARIANT varValue,
[in, optional] LPCOLESTR szLineComment
);
.NET Framework Security
- 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.