WebMethodAttribute 생성자

정의

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

오버로드

WebMethodAttribute()

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

WebMethodAttribute(Boolean)

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

WebMethodAttribute(Boolean, TransactionOption)

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

WebMethodAttribute(Boolean, TransactionOption)
WebMethodAttribute(Boolean, TransactionOption, Int32)

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

WebMethodAttribute(Boolean, TransactionOption, Int32)
WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean)

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

WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean)

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 Web services 메서드의 세션 상태 사용 여부를 초기화합니다.

적용 대상

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 Web services 메서드의 세션 상태 사용 여부를 초기화합니다.

transactionOption
TransactionOption

XML Web services 메서드의 트랜잭션 지원을 초기화합니다.

설명

웹 서비스 호출은 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)

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

매개 변수

enableSession
Boolean
transactionOption
TransactionOption

적용 대상

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 Web services 메서드의 세션 상태 사용 여부를 초기화합니다.

transactionOption
TransactionOption

XML Web services 메서드의 트랜잭션 지원을 초기화합니다.

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)

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

매개 변수

enableSession
Boolean
transactionOption
TransactionOption
cacheDuration
Int32

적용 대상

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 Web services 메서드의 세션 상태 사용 여부를 초기화합니다.

transactionOption
TransactionOption

XML Web services 메서드의 트랜잭션 지원을 초기화합니다.

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)]  

적용 대상

WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean)

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

매개 변수

enableSession
Boolean
transactionOption
TransactionOption
cacheDuration
Int32
bufferResponse
Boolean

적용 대상