SoapServices.PreLoad 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
형식에 적용된 값에 따라 지정된 형식을 SoapTypeAttribute 미리 로드합니다.
오버로드
| Name | Description |
|---|---|
| PreLoad(Assembly) |
각 형식과 연결된 정보에 있는 지정한 Type 정보에서 찾은 Assembly 모든 SoapTypeAttribute 것을 미리 로드합니다. |
| PreLoad(Type) |
형식에 설정된 Type 값에 따라 지정된 SoapTypeAttribute 값을 미리 로드합니다. |
PreLoad(Assembly)
각 형식과 연결된 정보에 있는 지정한 Type 정보에서 찾은 Assembly 모든 SoapTypeAttribute 것을 미리 로드합니다.
public:
static void PreLoad(System::Reflection::Assembly ^ assembly);
public static void PreLoad(System.Reflection.Assembly assembly);
[System.Security.SecurityCritical]
public static void PreLoad(System.Reflection.Assembly assembly);
static member PreLoad : System.Reflection.Assembly -> unit
[<System.Security.SecurityCritical>]
static member PreLoad : System.Reflection.Assembly -> unit
Public Shared Sub PreLoad (assembly As Assembly)
매개 변수
- assembly
- Assembly
Assembly 호출PreLoad(Type)할 각 형식에 대한 것입니다.
- 특성
예외
즉시 호출자에게 인프라 권한이 없습니다.
예제
다음 코드 예제에서는이 메서드를 사용 하는 방법을 보여 있습니다. 이 코드 예제는 클래스에 제공된 더 큰 예제의 SoapServices 일부입니다.
// Register all types in the assembly with the SoapType attribute.
System::Reflection::Assembly^ executingAssembly =
System::Reflection::Assembly::GetExecutingAssembly();
SoapServices::PreLoad( executingAssembly );
// Register all types in the assembly with the SoapType attribute.
System.Reflection.Assembly executingAssembly =
System.Reflection.Assembly.GetExecutingAssembly();
SoapServices.PreLoad(executingAssembly);
설명
.NET Framework에서 XML 스트림을 구문 분석하는 경우 스트림에서 XML 읽기를 공용 언어 런타임 형식으로 변환하는 방법을 알아야 합니다. .NET Framework에서 XML 스트림을 생성하고 구문 분석하는 방법을 지정하는 정보는 System.Runtime.Remoting.Metadata 네임스페이스에 있는 사용자 지정 특성에 저장됩니다. 구성 파일에서 이 정보를 지정하는 방법에는 매핑을 명시적으로 지정하거나 미리 로드할 개체 형식을 지정하는 두 가지 방법이 있습니다. 사용자 지정 특성은 사전 로드 프로세스 중에 읽혀지고 그 안에 있는 정보는 SOAP 파서에서 사용할 수 있게 됩니다.
적용 대상
PreLoad(Type)
형식에 설정된 Type 값에 따라 지정된 SoapTypeAttribute 값을 미리 로드합니다.
public:
static void PreLoad(Type ^ type);
public static void PreLoad(Type type);
[System.Security.SecurityCritical]
public static void PreLoad(Type type);
static member PreLoad : Type -> unit
[<System.Security.SecurityCritical>]
static member PreLoad : Type -> unit
Public Shared Sub PreLoad (type As Type)
매개 변수
- 특성
예외
즉시 호출자에게 인프라 권한이 없습니다.
예제
다음 코드 예제에서는이 메서드를 사용 하는 방법을 보여 있습니다. 이 코드 예제는 클래스에 제공된 더 큰 예제의 SoapServices 일부입니다.
// Register a specific type with the SoapType attribute.
Type^ exampleType = ExampleNamespace::ExampleClass::typeid;
SoapServices::PreLoad( exampleType );
// Register a specific type with the SoapType attribute.
Type exampleType = typeof(ExampleNamespace.ExampleClass);
SoapServices.PreLoad(exampleType);
설명
.NET Framework에서 XML 스트림을 구문 분석하는 경우 스트림에서 XML 읽기를 공용 언어 런타임 형식으로 변환하는 방법을 알아야 합니다. .NET Framework에서 XML 스트림을 생성하고 구문 분석하는 방법을 지정하는 정보는 System.Runtime.Remoting.Metadata 네임스페이스에 있는 사용자 지정 특성에 저장됩니다. 구성 파일에서 이 정보를 지정하는 방법에는 매핑을 명시적으로 지정하거나 미리 로드할 개체 형식을 지정하는 두 가지 방법이 있습니다. 사용자 지정 특성은 사전 로드 프로세스 중에 읽혀지고 그 안에 있는 정보는 SOAP 파서에서 사용할 수 있게 됩니다.