-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
IReadOnlySessionState.xml
39 lines (33 loc) · 2.13 KB
/
IReadOnlySessionState.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<Type Name="IReadOnlySessionState" FullName="System.Web.SessionState.IReadOnlySessionState">
<TypeSignature Language="C#" Value="public interface IReadOnlySessionState : System.Web.SessionState.IRequiresSessionState" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IReadOnlySessionState implements class System.Web.SessionState.IRequiresSessionState" />
<TypeSignature Language="DocId" Value="T:System.Web.SessionState.IReadOnlySessionState" />
<TypeSignature Language="VB.NET" Value="Public Interface IReadOnlySessionState
Implements IRequiresSessionState" />
<TypeSignature Language="F#" Value="type IReadOnlySessionState = interface
 interface IRequiresSessionState" />
<TypeSignature Language="C++ CLI" Value="public interface class IReadOnlySessionState : System::Web::SessionState::IRequiresSessionState" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>System.Web.SessionState.IRequiresSessionState</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Specifies that the target HTTP handler requires only read access to session-state values. This is a marker interface and has no methods.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Implement the <xref:System.Web.SessionState.IReadOnlySessionState> interface in your custom handler to identify that your handler requires only read access to session-state values.
## Examples
The following code example examines the current HTTP <xref:System.Web.HttpContext.Handler%2A> property to determine whether it requires only read access to session-state values.
[!code-csharp[HttpSessionState#31](~/snippets/csharp/VS_Snippets_WebNet/HttpSessionState/CS/snippetscs.aspx#31)]
[!code-vb[HttpSessionState#31](~/snippets/visualbasic/VS_Snippets_WebNet/HttpSessionState/VB/snippetsvb.aspx#31)]
]]></format>
</remarks>
</Docs>
<Members />
</Type>