共用方式為


ISchemaReferenceInfo.GetTargetNamespace Method

Retrieves the namespace of the discovered schema.

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

Syntax

'宣告
Function GetTargetNamespace ( _
    <OutAttribute> ByRef pbstrRef As String _
) As Integer
'用途
Dim instance As ISchemaReferenceInfo
Dim pbstrRef As String
Dim returnValue As Integer

returnValue = instance.GetTargetNamespace(pbstrRef)
int GetTargetNamespace(
    out string pbstrRef
)
int GetTargetNamespace(
    [OutAttribute] String^% pbstrRef
)
abstract GetTargetNamespace : 
        pbstrRef:string byref -> int 
function GetTargetNamespace(
    pbstrRef : String
) : int

Parameters

  • pbstrRef
    Type: System.String%
    [out] Pointer to a string containing schema's namespace.

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 ISchemaReferenceInfo::GetTargetNamespace(
   [out, retval] BSTR * pbstrRef
);

.NET Framework Security

See Also

Reference

ISchemaReferenceInfo Interface

ISchemaReferenceInfo Members

Microsoft.VisualStudio.Shell.Interop Namespace