Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft einen Wert ab, der angibt, ob das attributierte Objekt im Kontext des Erstellers zu erstellen ist.
Namespace: System.EnterpriseServices
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)
Syntax
'Declaration
Public ReadOnly Property Value As Boolean
'Usage
Dim instance As MustRunInClientContextAttribute
Dim value As Boolean
value = instance.Value
public bool Value { get; }
public:
property bool Value {
bool get ();
}
/** @property */
public boolean get_Value ()
public function get Value () : boolean
Eigenschaftenwert
true, wenn das attributierte Objekt im Kontext des Erstellers zu erstellen ist, andernfalls false. Der Standardwert ist true.
Beispiel
Im folgenden Codebeispiel wird der Wert der Value-Eigenschaft eines MustRunInClientContext-Attributs abgerufen.
<MustRunInClientContext(False)> _
Public Class MustRunInClientContextAttribute_Value
Inherits ServicedComponent
Public Sub ValueExample()
' Get the MustRunInClientContextAttribute applied to the class.
Dim attribute As MustRunInClientContextAttribute = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(MustRunInClientContextAttribute), False), MustRunInClientContextAttribute)
' Display the value of the attribute's Value property.
MsgBox("MustRunInClientContextAttribute.Value: " & attribute.Value)
End Sub 'ValueExample
End Class 'MustRunInClientContextAttribute_Value
[MustRunInClientContext(false)]
public class MustRunInClientContextAttribute_Value : ServicedComponent
{
public void ValueExample()
{
// Get the MustRunInClientContextAttribute applied to the class.
MustRunInClientContextAttribute attribute =
(MustRunInClientContextAttribute)Attribute.GetCustomAttribute(
this.GetType(),
typeof(MustRunInClientContextAttribute),
false);
// Display the value of the attribute's Value property.
Console.WriteLine("MustRunInClientContextAttribute.Value: {0}",
attribute.Value);
}
}
/** @attribute MustRunInClientContext(false)
*/
public class MustRunInClientContextAttribute_Value extends ServicedComponent
{
public void ValueExample()
{
// Get the MustRunInClientContextAttribute applied to the class.
MustRunInClientContextAttribute attribute =
(MustRunInClientContextAttribute)(Attribute.GetCustomAttribute(
this.GetType(), MustRunInClientContextAttribute.class.ToType(),
false));
// Display the value of the attribute's Value property.
Console.WriteLine("MustRunInClientContextAttribute.Value: {0}",
(System.Boolean)attribute.get_Value());
} //ValueExample
} //MustRunInClientContextAttribute_Value
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter .
Plattformen
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
MustRunInClientContextAttribute-Klasse
MustRunInClientContextAttribute-Member
System.EnterpriseServices-Namespace