IDiscoveryClientResult.GetReferenceTypeName Method

Returns the type of a referenced document in a Web discovery document.

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

Syntax

'宣言
Function GetReferenceTypeName ( _
    <OutAttribute> ByRef pbstrReferenceTypeName As String _
) As Integer
'使用
Dim instance As IDiscoveryClientResult
Dim pbstrReferenceTypeName As String
Dim returnValue As Integer

returnValue = instance.GetReferenceTypeName(pbstrReferenceTypeName)
int GetReferenceTypeName(
    out string pbstrReferenceTypeName
)
int GetReferenceTypeName(
    [OutAttribute] String^% pbstrReferenceTypeName
)
function GetReferenceTypeName(
    pbstrReferenceTypeName : String
) : int

Parameters

  • pbstrReferenceTypeName
    Type: System.String%

    [out] String containing the type of reference made in 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 designer.idl:

HRESULT IDiscoveryClientResult::GetReferenceTypeName(
   [out, retval] BSTR * pbstrReferenceTypeName
);

Usage

Documents returned by a Web discovery process may contain references to other types of documents such as schemas, service descriptions, or other discovery documents. For more information, see DiscoveryClientResult.ReferenceTypeName Property.

Permissions

See Also

Reference

IDiscoveryClientResult Interface

IDiscoveryClientResult Members

Microsoft.VisualStudio.Shell.Interop Namespace