System.Runtime.Remoting.Contexts.IContextProperty Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Contexts
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
Summary
Gathers naming information from the context property and determines whether the new context is ok for the context property.
C# Syntax:
public interface IContextProperty
Remarks
This interface is exposed by the property contributed to a context by an attribute. By default, it is also implemented by the ContextAttribute base class which Context attribute classes can extend from.
See also:
System.Runtime.Remoting.Contexts Namespace

System.Runtime.Remoting.Contexts.IContextProperty Member List:

Public Properties
Name Read-only

Gets the name of the property under which it will be added to the context.
Public Methods
Freeze Called when the context is frozen.
IsNewContextOK Returns a Boolean value indicating whether the context property is OK with the new context.

System.Runtime.Remoting.Contexts.IContextProperty Member Details

Property: Name (read-only)
Summary
Gets the name of the property under which it will be added to the context.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
string Name {get;}

Return to top


Method: Freeze(
   Context newContext
)
Summary
Called when the context is frozen.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
void Freeze(
   Context newContext
);
Parameters:

newContext

The context to freeze.

Remarks
Context properties cannot be added after the context has been frozen.

Return to top


Method: IsNewContextOK(
   Context newCtx
)
Summary
Returns a Boolean value indicating whether the context property is OK with the new context.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
bool IsNewContextOK(
   Context newCtx
);
Parameters:

newCtx

The new Context in which the ContextProperty has been created.

Return Value:
true if the context property can coexist with the other context properties in the given context; false otherwise.
Remarks
Once all the context properties have been added to the new context, they are all asked whether they are OK in the new context. The context property could look at the other context properties from the parameter new context and determine whether it is compatible with these other context properties. Returns false if not OK in the context.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.