WebMethodAttribute Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
WebMethodAttribute sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
WebMethodAttribute() |
WebMethodAttribute sınıfının yeni bir örneğini başlatır. |
WebMethodAttribute(Boolean) |
WebMethodAttribute sınıfının yeni bir örneğini başlatır. |
WebMethodAttribute(Boolean, TransactionOption) |
WebMethodAttribute sınıfının yeni bir örneğini başlatır. |
WebMethodAttribute(Boolean, TransactionOption) | |
WebMethodAttribute(Boolean, TransactionOption, Int32) |
WebMethodAttribute sınıfının yeni bir örneğini başlatır. |
WebMethodAttribute(Boolean, TransactionOption, Int32) | |
WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean) |
WebMethodAttribute sınıfının yeni bir örneğini başlatır. |
WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean) |
WebMethodAttribute()
WebMethodAttribute sınıfının yeni bir örneğini başlatır.
public:
WebMethodAttribute();
public WebMethodAttribute ();
Public Sub New ()
Ayrıca bkz.
Şunlara uygulanır
WebMethodAttribute(Boolean)
WebMethodAttribute sınıfının yeni bir örneğini başlatır.
public:
WebMethodAttribute(bool enableSession);
public WebMethodAttribute (bool enableSession);
new System.Web.Services.WebMethodAttribute : bool -> System.Web.Services.WebMethodAttribute
Public Sub New (enableSession As Boolean)
Parametreler
- enableSession
- Boolean
XML Web hizmeti yöntemi için oturum durumunun etkinleştirilip etkinleştirilmediğini başlatır.
Şunlara uygulanır
WebMethodAttribute(Boolean, TransactionOption)
WebMethodAttribute sınıfının yeni bir örneğini başlatır.
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)
Parametreler
- enableSession
- Boolean
XML Web hizmeti yöntemi için oturum durumunun etkinleştirilip etkinleştirilmediğini başlatır.
- transactionOption
- TransactionOption
XML Web hizmeti yönteminin işlem desteğini başlatır.
Açıklamalar
HTTP protokolünün durum bilgisi olmayan yapısı nedeniyle web hizmeti çağrısı yalnızca işlemin kökü olabilir. Bu, her çağrı yeni bir işlem oluştururken aşağıdaki iki ayarın eşdeğer olduğu anlamına gelir:
[WebMethod(TransactionOption = TransactionOption.Required)]
[WebMethod(TransactionOption = TransactionOption.RequiresNew)]
Ayrıca aşağıdaki tüm ayarların eşdeğer olduğu anlamına gelir; işlem desteği olmadığı anlamına gelir:
[WebMethod] // TransactionOption.Disabled is the default
[WebMethod(TransactionOption = TransactionOption.Disabled)]
[WebMethod(TransactionOption = Transaction.NotSupported)]
[WebMethod(TransactionOption = Transaction.Supported)]
Şunlara uygulanır
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)
Parametreler
- enableSession
- Boolean
- transactionOption
- TransactionOption
Şunlara uygulanır
WebMethodAttribute(Boolean, TransactionOption, Int32)
WebMethodAttribute sınıfının yeni bir örneğini başlatır.
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)
Parametreler
- enableSession
- Boolean
XML Web hizmeti yöntemi için oturum durumunun etkinleştirilip etkinleştirilmediğini başlatır.
- transactionOption
- TransactionOption
XML Web hizmeti yönteminin işlem desteğini başlatır.
- cacheDuration
- Int32
Yanıtın önbelleğe alınma saniye sayısını başlatır.
Açıklamalar
HTTP protokolünün durum bilgisi olmayan yapısı nedeniyle web hizmeti çağrısı yalnızca işlemin kökü olabilir. Bu, her çağrı yeni bir işlem oluştururken aşağıdaki iki ayarın eşdeğer olduğu anlamına gelir:
[WebMethod(TransactionOption = TransactionOption.Required)]
[WebMethod(TransactionOption = TransactionOption.RequiresNew)]
Ayrıca aşağıdaki tüm ayarların eşdeğer olduğu anlamına gelir; işlem desteği olmadığı anlamına gelir:
[WebMethod] // TransactionOption.Disabled is the default
[WebMethod(TransactionOption = TransactionOption.Disabled)]
[WebMethod(TransactionOption = Transaction.NotSupported)]
[WebMethod(TransactionOption = Transaction.Supported)]
Şunlara uygulanır
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)
Parametreler
- enableSession
- Boolean
- transactionOption
- TransactionOption
- cacheDuration
- Int32
Şunlara uygulanır
WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean)
WebMethodAttribute sınıfının yeni bir örneğini başlatır.
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)
Parametreler
- enableSession
- Boolean
XML Web hizmeti yöntemi için oturum durumunun etkinleştirilip etkinleştirilmediğini başlatır.
- transactionOption
- TransactionOption
XML Web hizmeti yönteminin işlem desteğini başlatır.
- cacheDuration
- Int32
Yanıtın önbelleğe alınma saniye sayısını başlatır.
- bufferResponse
- Boolean
Bu istek için yanıtın arabelleğe alınıp alınmadığını başlatır.
Açıklamalar
HTTP protokolünün durum bilgisi olmayan yapısı nedeniyle web hizmeti çağrısı yalnızca işlemin kökü olabilir. Bu, her çağrı yeni bir işlem oluştururken aşağıdaki iki ayarın eşdeğer olduğu anlamına gelir:
[WebMethod(TransactionOption = TransactionOption.Required)]
[WebMethod(TransactionOption = TransactionOption.RequiresNew)]
Ayrıca aşağıdaki tüm ayarların eşdeğer olduğu anlamına gelir; işlem desteği olmadığı anlamına gelir:
[WebMethod] // TransactionOption.Disabled is the default
[WebMethod(TransactionOption = TransactionOption.Disabled)]
[WebMethod(TransactionOption = Transaction.NotSupported)]
[WebMethod(TransactionOption = Transaction.Supported)]
Şunlara uygulanır
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)
Parametreler
- enableSession
- Boolean
- transactionOption
- TransactionOption
- cacheDuration
- Int32
- bufferResponse
- Boolean