WebMethodAttribute 생성자

정의

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
WebMethodAttribute()

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

WebMethodAttribute(Boolean)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

WebMethodAttribute(Boolean, TransactionOption)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

WebMethodAttribute(Boolean, TransactionOption, Int32)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

WebMethodAttribute()

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 WebMethodAttribute();
public WebMethodAttribute();
Public Sub New ()

추가 정보

적용 대상

WebMethodAttribute(Boolean)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 WebMethodAttribute(bool enableSession);
public WebMethodAttribute(bool enableSession);
new System.Web.Services.WebMethodAttribute : bool -> System.Web.Services.WebMethodAttribute
Public Sub New (enableSession As Boolean)

매개 변수

enableSession
Boolean

XML 웹 서비스 메서드에 대해 세션 상태를 사용할 수 있는지 여부를 초기화합니다.

적용 대상

WebMethodAttribute(Boolean, TransactionOption)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 WebMethodAttribute(bool enableSession, System::EnterpriseServices::TransactionOption transactionOption);
public WebMethodAttribute(bool enableSession, System.EnterpriseServices.TransactionOption transactionOption);
new System.Web.Services.WebMethodAttribute : bool * System.EnterpriseServices.TransactionOption -> System.Web.Services.WebMethodAttribute
Public Sub New (enableSession As Boolean, transactionOption As TransactionOption)

매개 변수

enableSession
Boolean

XML 웹 서비스 메서드에 대해 세션 상태를 사용할 수 있는지 여부를 초기화합니다.

transactionOption
TransactionOption

XML 웹 서비스 메서드의 트랜잭션 지원을 초기화합니다.

설명

웹 서비스 호출은 HTTP 프로토콜의 상태 비정상 특성으로 인해 트랜잭션의 루트일 수 있습니다. 즉, 각 호출에서 새 트랜잭션을 만들 때 다음 두 설정이 동일합니다.

[WebMethod(TransactionOption = TransactionOption.Required)]
[WebMethod(TransactionOption = TransactionOption.RequiresNew)]

또한 다음 설정이 모두 동일하다는 의미이기도 합니다. 트랜잭션 지원이 없음을 의미합니다.

[WebMethod] // TransactionOption.Disabled is the default
[WebMethod(TransactionOption = TransactionOption.Disabled)]
[WebMethod(TransactionOption = Transaction.NotSupported)]
[WebMethod(TransactionOption = Transaction.Supported)]

적용 대상

WebMethodAttribute(Boolean, TransactionOption, Int32)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 WebMethodAttribute(bool enableSession, System::EnterpriseServices::TransactionOption transactionOption, int cacheDuration);
public WebMethodAttribute(bool enableSession, System.EnterpriseServices.TransactionOption transactionOption, int cacheDuration);
new System.Web.Services.WebMethodAttribute : bool * System.EnterpriseServices.TransactionOption * int -> System.Web.Services.WebMethodAttribute
Public Sub New (enableSession As Boolean, transactionOption As TransactionOption, cacheDuration As Integer)

매개 변수

enableSession
Boolean

XML 웹 서비스 메서드에 대해 세션 상태를 사용할 수 있는지 여부를 초기화합니다.

transactionOption
TransactionOption

XML 웹 서비스 메서드의 트랜잭션 지원을 초기화합니다.

cacheDuration
Int32

응답이 캐시되는 시간(초)을 초기화합니다.

설명

웹 서비스 호출은 HTTP 프로토콜의 상태 비정상 특성으로 인해 트랜잭션의 루트일 수 있습니다. 즉, 각 호출에서 새 트랜잭션을 만들 때 다음 두 설정이 동일합니다.

[WebMethod(TransactionOption = TransactionOption.Required)]
[WebMethod(TransactionOption = TransactionOption.RequiresNew)]

또한 다음 설정이 모두 동일하다는 의미이기도 합니다. 트랜잭션 지원이 없음을 의미합니다.

[WebMethod] // TransactionOption.Disabled is the default
[WebMethod(TransactionOption = TransactionOption.Disabled)]
[WebMethod(TransactionOption = Transaction.NotSupported)]
[WebMethod(TransactionOption = Transaction.Supported)]

적용 대상

WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean)

WebMethodAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 WebMethodAttribute(bool enableSession, System::EnterpriseServices::TransactionOption transactionOption, int cacheDuration, bool bufferResponse);
public WebMethodAttribute(bool enableSession, System.EnterpriseServices.TransactionOption transactionOption, int cacheDuration, bool bufferResponse);
new System.Web.Services.WebMethodAttribute : bool * System.EnterpriseServices.TransactionOption * int * bool -> System.Web.Services.WebMethodAttribute
Public Sub New (enableSession As Boolean, transactionOption As TransactionOption, cacheDuration As Integer, bufferResponse As Boolean)

매개 변수

enableSession
Boolean

XML 웹 서비스 메서드에 대해 세션 상태를 사용할 수 있는지 여부를 초기화합니다.

transactionOption
TransactionOption

XML 웹 서비스 메서드의 트랜잭션 지원을 초기화합니다.

cacheDuration
Int32

응답이 캐시되는 시간(초)을 초기화합니다.

bufferResponse
Boolean

이 요청에 대한 응답이 버퍼링되는지 여부를 초기화합니다.

설명

웹 서비스 호출은 HTTP 프로토콜의 상태 비정상 특성으로 인해 트랜잭션의 루트일 수 있습니다. 즉, 각 호출에서 새 트랜잭션을 만들 때 다음 두 설정이 동일합니다.

[WebMethod(TransactionOption = TransactionOption.Required)]
[WebMethod(TransactionOption = TransactionOption.RequiresNew)]

또한 다음 설정이 모두 동일하다는 의미이기도 합니다. 트랜잭션 지원이 없음을 의미합니다.

[WebMethod] // TransactionOption.Disabled is the default
[WebMethod(TransactionOption = TransactionOption.Disabled)]
[WebMethod(TransactionOption = Transaction.NotSupported)]
[WebMethod(TransactionOption = Transaction.Supported)]

적용 대상