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
- 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.