共用方式為


IHttpSessionState.IsNewSession 屬性

定義

取得值,指出工作階段是否與目前要求一起建立。

public:
 property bool IsNewSession { bool get(); };
public bool IsNewSession { get; }
member this.IsNewSession : bool
Public ReadOnly Property IsNewSession As Boolean

屬性值

如果工作階段是以目前要求建立,則為 true,否則為 false

範例

下列程式碼範例會 IsNewSession 實作 介面的 IHttpSessionState 屬性。

public bool IsNewSession
{
  get { return pNewSession; }
}
Public ReadOnly Property IsNewSession As Boolean Implements IHttpSessionState.IsNewSession
  Get
    Return pNewSession
  End Get
End Property

適用於

另請參閱