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. |
스레드 안전성
이 유형의 공용 정적(Visual Basic에서는 Shared) 멤버는 모두 스레드로부터 안전합니다.인스턴스 멤버는 스레드로부터 안전하지 않을 수 있습니다.
플랫폼
개발 플랫폼
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
참고 항목
참조
WSTrustServiceContract 클래스
WSTrustServiceContract 멤버
Microsoft.IdentityModel.Protocols.WSTrust 네임스페이스