Поделиться через


Метод WSTrustServiceContract.ImportSchema

Imports all the required schema if not already present in the WSDL. The default implementation will import the following schemas, (a) WS-Trust Feb 2005. (b) WS-Trust 1.3 Derived classes can override this method to import other schemas.

Пространство имен: Microsoft.IdentityModel.Protocols.WSTrust
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

    Dim exporter As WsdlExporter
Dim context As WsdlEndpointConversionContext
Dim ns As String

Me.ImportSchema(exporter, context, ns)

Синтаксис

'Декларация
Protected Overridable Sub ImportSchema ( _
    exporter As WsdlExporter, _
    context As WsdlEndpointConversionContext, _
    ns As String _
)
protected virtual void ImportSchema (
    WsdlExporter exporter,
    WsdlEndpointConversionContext context,
    string ns
)
protected:
virtual void ImportSchema (
    WsdlExporter^ exporter, 
    WsdlEndpointConversionContext^ context, 
    String^ ns
)
protected void ImportSchema (
    WsdlExporter exporter, 
    WsdlEndpointConversionContext context, 
    String ns
)
protected function ImportSchema (
    exporter : WsdlExporter, 
    context : WsdlEndpointConversionContext, 
    ns : String
)

Параметры

  • exporter
    The WsdlExporter that exports the contract information.
  • context
    Provides mappings from exported WSDL elements to the endpoint description.
  • ns
    The current WS-Trust namespace for which the schemas are imported.

Исключения

Тип исключений Условие
ArgumentNullException

The parameter 'exporter' or 'context' is null.

ArgumentException

The parameter 'ns' is either null or String.Empty.

InvalidOperationException

The namespace 'ns' is not a recognized WS-Trust namespace.

Безопасность потоков

Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

См. также

Справочник

Класс WSTrustServiceContract
WSTrustServiceContract Члены
Пространство имен Microsoft.IdentityModel.Protocols.WSTrust