Język

MustRunInClientContextAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MustRunInClientContextAttribute.

Przeciążenia

Nazwa Opis
MustRunInClientContextAttribute()

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

MustRunInClientContextAttribute(Boolean)

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

MustRunInClientContextAttribute()

Inicjuje nowe wystąpienie MustRunInClientContextAttribute klasy, co wymaga 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 nowe wystąpienie MustRunInClientContextAttribute 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 w celu utworzenia obiektu 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