Condividi tramite


Classe ProfileUsageAttribute

Descrive come viene supportata una proprietà in un profilo ASP.NET.

Spazio dei nomi: System.ServiceModel.DomainServices.Server.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Server (in system.servicemodel.domainservices.server.dll)

Utilizzo

'Utilizzo
Dim instance As ProfileUsageAttribute

Sintassi

'Dichiarazione
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple:=False, Inherited:=False)> _
Public NotInheritable Class ProfileUsageAttribute
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false)] 
public sealed class ProfileUsageAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple=false, Inherited=false)] 
public ref class ProfileUsageAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false) */ 
public final class ProfileUsageAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false) 
public final class ProfileUsageAttribute extends Attribute

Osservazioni

Questo attributo viene utilizzato dall'oggetto AuthenticationBase per determinare il modo in cui leggere dal profilo ASP.NET che supporta i dati o scrivere nello stesso. Se nel profilo esiste una proprietà con lo stesso nome, non è necessario utilizzare questo attributo. Se nel profilo non è presente una proprietà, è necessario impostare la proprietà IsExcluded su true. Se una proprietà ha un nome diverso dal valore del profilo che la supporta, è necessario impostare la proprietà Alias sul nome del valore di supporto nel profilo. L'attributo può essere utilizzato con le entità utente che estendono UserBase.

Gerarchia di ereditarietà

System.Object
   System.Attribute
    System.ServiceModel.DomainServices.Server.ApplicationServices.ProfileUsageAttribute

Sicurezza dei thread

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è invece garantita la sicurezza dei membri dell'istanza.

Piattaforme

Piattaforme di sviluppo

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 e Windows 2000

Piattaforme di destinazione

Vedere anche

Riferimento

Membri ProfileUsageAttribute
Spazio dei nomi System.ServiceModel.DomainServices.Server.ApplicationServices