IDiscoveryResult.GetDocumentXml Method

Retrieves the XML of the document specified by the URL in the parameter list. This URL can point to SDL, XSD, disco or other file types.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function GetDocumentXml ( _
    url As String, _
    <OutAttribute> ByRef pbstrXML As String _
) As Integer
‘사용 방법
Dim instance As IDiscoveryResult
Dim url As String
Dim pbstrXML As String
Dim returnValue As Integer

returnValue = instance.GetDocumentXml(url, _
    pbstrXML)
int GetDocumentXml(
    string url,
    out string pbstrXML
)
int GetDocumentXml(
    [InAttribute] String^ url, 
    [OutAttribute] String^% pbstrXML
)
abstract GetDocumentXml : 
        url:string * 
        pbstrXML:string byref -> int 
function GetDocumentXml(
    url : String, 
    pbstrXML : String
) : int

Parameters

  • url
    Type: System.String
    [in] Specifies the URL of the document.
  • pbstrXML
    Type: System.String%
    [out] Pointer to a string containing the XML of the document.

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 discoveryservice.idl:

HRESULT IDiscoveryResult::GetDocumentXml(
   [in] BSTR url,
   [out, retval] BSTR *pbstrXml
);

.NET Framework Security

See Also

Reference

IDiscoveryResult Interface

IDiscoveryResult Members

Microsoft.VisualStudio.Shell.Interop Namespace