﻿<?xml version="1.0" encoding="utf-8"?><Type Name="ContextAttribute" FullName="System.Runtime.Remoting.Contexts.ContextAttribute"><TypeSignature Maintainer="auto" Language="C#" Value="public class ContextAttribute : Attribute, System.Runtime.Remoting.Contexts.IContextAttribute, System.Runtime.Remoting.Contexts.IContextProperty" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit ContextAttribute extends System.Attribute implements class System.Runtime.Remoting.Contexts.IContextAttribute, class System.Runtime.Remoting.Contexts.IContextProperty" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Attribute</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Runtime.Remoting.Contexts.IContextAttribute</InterfaceName></Interface><Interface><InterfaceName>System.Runtime.Remoting.Contexts.IContextProperty</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.AttributeUsage(System.AttributeTargets.Class)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Runtime.Remoting.Contexts.ContextAttribute" /> class is the root for all context attributes. Simple <see cref="T:System.Runtime.Remoting.Contexts.Context" /> class properties can be derived from <see cref="T:System.Runtime.Remoting.Contexts.ContextAttribute" /> with the context attribute and the context property being in the class. For more specialized or more sophisticated needs, the context attribute can derive from <see cref="T:System.Runtime.Remoting.Contexts.ContextAttribute" /> and the context property can be split into a separated class. For more information about using attributes, see <format type="text/html"><a href="30386922-1E00-4602-9EBF-526B271A8B87">[&lt;topic://cpconExtendingMetadataUsingAttributes&gt;]</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides the default implementations of the <see cref="T:System.Runtime.Remoting.Contexts.IContextAttribute" /> and <see cref="T:System.Runtime.Remoting.Contexts.IContextProperty" /> interfaces.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public ContextAttribute (string name);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters><Parameter Name="name" Type="System.String" /></Parameters><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates an instance of the <see cref="T:System.Runtime.Remoting.Contexts.ContextAttribute" /> class with the specified name.</para></summary><param name="name"><attribution license="cc4" from="Microsoft" modified="false" />The name of the context attribute. </param></Docs></Member><Member MemberName="AttributeName"><MemberSignature Language="C#" Value="protected string AttributeName;" /><MemberSignature Language="ILAsm" Value=".field family string AttributeName" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates the name of the context attribute.</para></summary></Docs></Member><Member MemberName="Equals"><MemberSignature Language="C#" Value="public override bool Equals (object o);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object o) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="o" Type="System.Object" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a Boolean value indicating whether this instance is equal to the specified object.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if <paramref name="o" /> is not null and if the object names are equivalent; otherwise, false.</para></returns><param name="o"><attribution license="cc4" from="Microsoft" modified="false" />The object to compare with this instance. </param></Docs></Member><Member MemberName="Freeze"><MemberSignature Language="C#" Value="public virtual void Freeze (System.Runtime.Remoting.Contexts.Context newContext);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Freeze(class System.Runtime.Remoting.Contexts.Context newContext) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="newContext" Type="System.Runtime.Remoting.Contexts.Context" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Context properties cannot be added after the context has been frozen.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Called when the context is frozen.</para></summary><param name="newContext"><attribution license="cc4" from="Microsoft" modified="false" />The context to freeze. </param></Docs></Member><Member MemberName="GetHashCode"><MemberSignature Language="C#" Value="public override int GetHashCode ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the hashcode for this instance of <see cref="T:System.Runtime.Remoting.Contexts.ContextAttribute" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The hashcode for this instance of <see cref="T:System.Runtime.Remoting.Contexts.ContextAttribute" />.</para></returns></Docs></Member><Member MemberName="GetPropertiesForNewContext"><MemberSignature Language="C#" Value="public virtual void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void GetPropertiesForNewContext(class System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="ctorMsg" Type="System.Runtime.Remoting.Activation.IConstructionCallMessage" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Runtime.Remoting.Contexts.ContextAttribute" /> class is an implementation of an <see cref="T:System.Runtime.Remoting.Contexts.IContextProperty" /> property. The <see cref="M:System.Runtime.Remoting.Contexts.ContextAttribute.GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage)" /> method adds the property to the given <see cref="T:System.Runtime.Remoting.Activation.IConstructionCallMessage" /> class so that when the message is received, the new object can be created in the required context environment.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Adds the current context property to the given message.</para></summary><param name="ctorMsg"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Runtime.Remoting.Activation.IConstructionCallMessage" /> to which to add the context property. </param></Docs></Member><Member MemberName="IsContextOK"><MemberSignature Language="C#" Value="public virtual bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsContextOK(class System.Runtime.Remoting.Contexts.Context ctx, class System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="ctx" Type="System.Runtime.Remoting.Contexts.Context" /><Parameter Name="ctorMsg" Type="System.Runtime.Remoting.Activation.IConstructionCallMessage" /></Parameters><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a Boolean value indicating whether the context parameter meets the context attribute's requirements.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the passed in context is okay; otherwise, false.</para></returns><param name="ctx"><attribution license="cc4" from="Microsoft" modified="false" />The context in which to check. </param><param name="ctorMsg"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Runtime.Remoting.Activation.IConstructionCallMessage" /> to which to add the context property.</param></Docs></Member><Member MemberName="IsNewContextOK"><MemberSignature Language="C#" Value="public virtual bool IsNewContextOK (System.Runtime.Remoting.Contexts.Context newCtx);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsNewContextOK(class System.Runtime.Remoting.Contexts.Context newCtx) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="newCtx" Type="System.Runtime.Remoting.Contexts.Context" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Once all the context properties have been added to the new context, they are all queried as to whether they are okay in the new context. The context property could look at the other context properties in the <see cref="P:System.Runtime.Remoting.Contexts.Context.ContextProperties" /> property of the new context and determine whether it is compatible with these other context properties.</para><block subset="none" type="note"><para>By default, the <see cref="M:System.Runtime.Remoting.Contexts.ContextAttribute.IsNewContextOK(System.Runtime.Remoting.Contexts.Context)" /> method returns true.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a Boolean value indicating whether the context property is compatible with the new context.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the context property is okay with the new context; otherwise, false.</para></returns><param name="newCtx"><attribution license="cc4" from="Microsoft" modified="false" />The new context in which the property has been created. </param></Docs></Member><Member MemberName="Name"><MemberSignature Language="C#" Value="public virtual string Name { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string Name" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'string'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Default implementation of this property provides <see cref="F:System.Runtime.Remoting.Contexts.ContextAttribute.AttributeName" /> as the property name.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the name of the context attribute.</para></summary></Docs></Member></Members></Type>