IVsProvideComponentEnumeration.WriteXMLToFile Method
Writes a string of XML out to a file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function WriteXMLToFile ( _
bstrDesiredFile As String, _
<OutAttribute> ByRef pbstrActualFile As String _
) As Integer
int WriteXMLToFile(
string bstrDesiredFile,
out string pbstrActualFile
)
int WriteXMLToFile(
[InAttribute] String^ bstrDesiredFile,
[OutAttribute] String^% pbstrActualFile
)
abstract WriteXMLToFile :
bstrDesiredFile:string *
pbstrActualFile:string byref -> int
function WriteXMLToFile(
bstrDesiredFile : String,
pbstrActualFile : String
) : int
Parameters
- bstrDesiredFile
Type: System.String
[in] String containing XML to write out.
- pbstrActualFile
Type: System.String%
[out] Pointer to a string containing the XML as it was written out.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From compsvcspkg.idl:
[C++]
HRESULT IVsProvideComponentEnumeration::WriteXMLToFile(
[in] BSTR bstrDesiredFile,
[out] BSTR* pbstrActualFile
);
.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.