RemotingConfiguration.Configure 메서드

정의

오버로드

Configure(String)
사용되지 않음.

구성 파일을 읽고 원격 인프라를 구성합니다. Configure(String)는 사용되지 않습니다. 대신 Configure(String, Boolean)를 사용하십시오.

Configure(String, Boolean)

구성 파일을 읽고 원격 인프라를 구성합니다.

Configure(String)

주의

Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.

구성 파일을 읽고 원격 인프라를 구성합니다. Configure(String)는 사용되지 않습니다. 대신 Configure(String, Boolean)를 사용하십시오.

public:
 static void Configure(System::String ^ filename);
public static void Configure (string filename);
[System.Obsolete("Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.", false)]
public static void Configure (string filename);
static member Configure : string -> unit
[<System.Obsolete("Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.", false)>]
static member Configure : string -> unit
Public Shared Sub Configure (filename As String)

매개 변수

filename
String

원격 구성 파일 이름입니다. null일 수 있습니다.

특성

예외

호출 스택의 상위 호출자 중 하나 이상에게 원격 형식 및 채널을 구성하기 위한 권한이 없는 경우

예제

// Configure the remoting structure.
RemotingConfiguration::Configure( "server.config" );

// Configure the remoting structure.
RemotingConfiguration.Configure("server.config");
' Configure the remoting structure.
RemotingConfiguration.Configure("server.config")

설명

참고

Configure(String)는 사용되지 않습니다. 대신 Configure(String, Boolean)를 사용하십시오.

매개 변수로 filename 전달 null 하면 구성 파일이 없어도 기본 원격 초기화가 발생합니다.

구성 파일 구문은 원격 설정 스키마를 참조하세요.

참고

참조로 마샬링 개체 (Mbr) 메모리에 계속 상주 하지 않습니다. 대신 형식을 재정의 하지 않는 한 MarshalByRefObject.InitializeLifetimeService 각 MBR은.NET Framework remoting 시스템 메모리를 확보 하 고 삭제 프로세스를 시작 하기 전에 유한 수명이 자체 수명 정책을 제어 합니다. 자세한 내용은 수명 임대합니다.

적용 대상

Configure(String, Boolean)

구성 파일을 읽고 원격 인프라를 구성합니다.

public:
 static void Configure(System::String ^ filename, bool ensureSecurity);
public static void Configure (string filename, bool ensureSecurity);
static member Configure : string * bool -> unit
Public Shared Sub Configure (filename As String, ensureSecurity As Boolean)

매개 변수

filename
String

원격 구성 파일 이름입니다. null일 수 있습니다.

ensureSecurity
Boolean

true로 설정하면 보안이 필요합니다. false로 설정하면 보안이 필요없지만 사용할 수 있습니다.

예외

호출 스택의 상위 호출자 중 하나 이상에게 원격 형식 및 채널을 구성하기 위한 권한이 없는 경우

설명

매개 변수로 filename 전달 null 하면 구성 파일이 없어도 기본 원격 초기화가 발생합니다. 원격 및 보안에 대한 자세한 내용은 Remoting의 보안을 참조하세요.

구성 파일 구문은 원격 설정 스키마를 참조하세요.

참고

참조로 마샬링 개체 (Mbr) 메모리에 계속 상주 하지 않습니다. 대신 형식을 재정의 하지 않는 한 MarshalByRefObject.InitializeLifetimeService 각 MBR은.NET Framework remoting 시스템 메모리를 확보 하 고 삭제 프로세스를 시작 하기 전에 유한 수명이 자체 수명 정책을 제어 합니다. 자세한 내용은 수명 임대합니다.

적용 대상