ProxyGenerator.GetClientProxyScript 메서드

정의

지정된 형식에 대한 프록시 생성 코드를 검색합니다.

오버로드

Name Description
GetClientProxyScript(Type, String, Boolean)

지정된 형식에 대한 프록시 생성 코드를 검색합니다.

GetClientProxyScript(Type, String, Boolean, ServiceEndpoint)

경로 및 서비스 엔드포인트를 사용하여 지정된 형식에 대한 프록시 생성 코드를 검색합니다.

GetClientProxyScript(Type, String, Boolean)

지정된 형식에 대한 프록시 생성 코드를 검색합니다.

public:
 static System::String ^ GetClientProxyScript(Type ^ type, System::String ^ path, bool debug);
public static string GetClientProxyScript(Type type, string path, bool debug);
static member GetClientProxyScript : Type * string * bool -> string
Public Shared Function GetClientProxyScript (type As Type, path As String, debug As Boolean) As String

매개 변수

type
Type

스크립트를 가져올 개체의 형식입니다.

path
String

엔드포인트의 위치입니다.

debug
Boolean

trueXML 코드 주석을 포함하려면 그렇지 않으면 . false

반품

프록시 생성 코드입니다.

예외

type 또는 path 매개 변수가 .입니다null.

지정된 형식은 프록시 생성에 지원되지 않습니다.

설명

GetClientProxyScript 메서드는 웹 서비스, WCF(Windows Communication Foundation) 서비스 또는 WebMethodAttribute 특성이 적용된 정적 페이지 메서드에 대한 프록시 생성 ECMAScript(JavaScript)를 반환합니다. type 매개 변수에는 웹 서비스 클래스, WCF 서비스 클래스 또는 ASP.NET 페이지 클래스의 형식이 포함됩니다. 형식이 WCF 서비스 클래스 또는 인터페이스인 경우 클래스 또는 인터페이스에 특성이 ServiceContractAttribute 적용되어 있어야 합니다. debug 매개 변수가 true 경우 결과 코드에는 Visual Studio 또는 기타 개발 환경에서 IntelliSense 지원에 사용할 수 있는 XML 코드 주석이 포함됩니다. 따라서 생성된 스크립트의 크기가 더 큽합니다.

추가 정보

적용 대상

GetClientProxyScript(Type, String, Boolean, ServiceEndpoint)

경로 및 서비스 엔드포인트를 사용하여 지정된 형식에 대한 프록시 생성 코드를 검색합니다.

public:
 static System::String ^ GetClientProxyScript(Type ^ type, System::String ^ path, bool debug, System::ServiceModel::Description::ServiceEndpoint ^ serviceEndpoint);
public static string GetClientProxyScript(Type type, string path, bool debug, System.ServiceModel.Description.ServiceEndpoint serviceEndpoint);
static member GetClientProxyScript : Type * string * bool * System.ServiceModel.Description.ServiceEndpoint -> string
Public Shared Function GetClientProxyScript (type As Type, path As String, debug As Boolean, serviceEndpoint As ServiceEndpoint) As String

매개 변수

type
Type

스크립트를 가져올 개체의 형식입니다.

path
String

엔드포인트의 위치입니다.

debug
Boolean

trueXML 코드 주석을 포함하려면 그렇지 않으면 . false

serviceEndpoint
ServiceEndpoint

서비스 엔드포인트입니다.

반품

프록시 생성 코드입니다.

예외

type 또는 path 매개 변수가 .입니다null.

지정된 형식은 프록시 생성에 지원되지 않습니다.

설명

GetClientProxyScript 메서드는 웹 서비스, WCF(Windows Communication Foundation) 서비스 또는 WebMethodAttribute 특성이 적용된 정적 페이지 메서드에 대한 프록시 생성 ECMAScript(JavaScript)를 반환합니다. type 매개 변수에는 웹 서비스 클래스, WCF 서비스 클래스 또는 ASP.NET 페이지 클래스의 형식이 포함됩니다. 형식이 WCF 서비스 클래스 또는 인터페이스인 경우 클래스 또는 인터페이스에 특성이 ServiceContractAttribute 적용되어 있어야 합니다. debug 매개 변수가 true 경우 결과 코드에는 Visual Studio 또는 기타 개발 환경에서 IntelliSense 지원에 사용할 수 있는 XML 코드 주석이 포함됩니다. 따라서 생성된 스크립트의 크기가 더 큽합니다.

추가 정보

적용 대상