MustRunInClientContextAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MustRunInClientContextAttribute.

Przeciążenia

MustRunInClientContextAttribute()

Inicjuje MustRunInClientContextAttribute nowe wystąpienie klasy, wymagające utworzenia obiektu w kontekście twórcy.

MustRunInClientContextAttribute(Boolean)

Inicjuje MustRunInClientContextAttribute nowe wystąpienie klasy, opcjonalnie nie tworzy obiektu w kontekście twórcy.

MustRunInClientContextAttribute()

Inicjuje MustRunInClientContextAttribute nowe wystąpienie klasy, wymagające utworzenia obiektu w kontekście twórcy.

public:
 MustRunInClientContextAttribute();
public MustRunInClientContextAttribute ();
Public Sub New ()

Przykłady

Poniższy przykład kodu tworzy nowy MustRunInClientContextAttributeelement .

[MustRunInClientContext]
public class MustRunInClientContextAttribute_Ctor : ServicedComponent
{
}
<MustRunInClientContext()>  _
Public Class MustRunInClientContextAttribute_Ctor
    Inherits ServicedComponent
End Class

Dotyczy

MustRunInClientContextAttribute(Boolean)

Inicjuje MustRunInClientContextAttribute nowe wystąpienie klasy, opcjonalnie nie tworzy obiektu w kontekście twórcy.

public:
 MustRunInClientContextAttribute(bool val);
public MustRunInClientContextAttribute (bool val);
new System.EnterpriseServices.MustRunInClientContextAttribute : bool -> System.EnterpriseServices.MustRunInClientContextAttribute
Public Sub New (val As Boolean)

Parametry

val
Boolean

true aby utworzyć obiekt w kontekście twórcy; w przeciwnym razie , false.

Przykłady

Poniższy przykład kodu tworzy nowy MustRunInClientContextAttributeelement .

[MustRunInClientContext(false)]
public class MustRunInClientContextAttribute_Ctor_Bool : ServicedComponent
{
}
<MustRunInClientContext(False)>  _
Public Class MustRunInClientContextAttribute_Ctor_Bool
    Inherits ServicedComponent
End Class

Dotyczy