Share via


DataConnectionProperties.GetNameAsString, méthode

Met en forme un nom de propriété pour le positionnement dans une chaîne de connexion.

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

Syntaxe

'Déclaration
Protected Overridable Function GetNameAsString ( _
    propertyName As String _
) As String
protected virtual string GetNameAsString(
    string propertyName
)
protected:
virtual String^ GetNameAsString(
    String^ propertyName
)
abstract GetNameAsString : 
        propertyName:string -> string 
override GetNameAsString : 
        propertyName:string -> string 
protected function GetNameAsString(
    propertyName : String
) : String

Paramètres

  • propertyName
    Type : System.String
    Nom de la propriété pour laquelle le nom est spécifié.

Valeur de retour

Type : System.String
Retourne le nom mis en forme du nom de la propriété d'entrée pour le positionnement dans une chaîne de connexion.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre propertyName est null.

Notes

Cette méthode est appelée par l'implémentation de base d' ToDisplayString et d' ToFullString en forme des noms de propriétés à définir dans la chaîne de sortie.

Sécurité .NET Framework

Voir aussi

Référence

DataConnectionProperties Classe

Microsoft.VisualStudio.Data, espace de noms