ComContractElement.RequiresSession 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個布林值,指定該契約是否只能用於會話綁定。
public:
property bool RequiresSession { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("requiresSession", DefaultValue=true)]
public bool RequiresSession { get; set; }
[<System.Configuration.ConfigurationProperty("requiresSession", DefaultValue=true)>]
member this.RequiresSession : bool with get, set
Public Property RequiresSession As Boolean
屬性值
true如果合約只能用於會議綁定;否則,。 false 預設值為 false。
- 屬性
備註
服務初始化時,整合執行時會確保此設定與所使用的綁定類型一致。 若合約的一項或多項約束力存在衝突,則會產生例外。 若此性質為 false,則使用單向通道且存在任何[出]參數,則也會產生例外。