ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Metod

Definition

Lägger till den aktuella kontextegenskapen i det angivna meddelandet.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

public:
 virtual void GetPropertiesForNewContext(System::Runtime::Remoting::Activation::IConstructionCallMessage ^ ctorMsg);
public virtual void GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
[System.Security.SecurityCritical]
public virtual void GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
[<System.Security.SecurityCritical>]
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
Public Overridable Sub GetPropertiesForNewContext (ctorMsg As IConstructionCallMessage)

Parametrar

ctorMsg
IConstructionCallMessage

Till IConstructionCallMessage vilken kontextegenskapen ska läggas till.

Implementeringar

Attribut

Undantag

Parametern ctorMsg är null.

Kommentarer

Klassen ContextAttribute är en implementering av en IContextProperty egenskap. Metoden GetPropertiesForNewContext lägger till egenskapen i den angivna IConstructionCallMessage klassen så att det nya objektet kan skapas i den kontextmiljö som krävs när meddelandet tas emot.

Gäller för