DataConnectionProperties.IsSensitive, méthode

Indique si une propriété contient des informations sensibles.

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Public Function IsSensitive ( _
    key As String _
) As Boolean
public bool IsSensitive(
    string key
)
public:
virtual bool IsSensitive(
    String^ key
) sealed
abstract IsSensitive : 
        key:string -> bool  
override IsSensitive : 
        key:string -> bool
public final function IsSensitive(
    key : String
) : boolean

Paramètres

  • key
    Type : String

    le nom de la propriété ;

Valeur de retour

Type : Boolean
true si la propriété contient des informations sensibles ; sinon, false.

Implémentations

IVsDataConnectionUIProperties.IsSensitive(String)

Exceptions

Exception Condition
ArgumentNullException

Le paramètre key est nullune référence null (Nothing en Visual Basic).

Notes

Implémentation de base de cette méthode extrait l'attribut PasswordPropertyTextAttribute pour la propriété spécifiée et retourne true si cet attribut a la valeur true; sinon, elle retourne false.

Sécurité .NET Framework

Voir aussi

Référence

DataConnectionProperties Classe

Microsoft.VisualStudio.Data.Framework, espace de noms