Share via


PropertyCollection.GetProperty Méthode

Définition

Surcharges

GetProperty(PropertyId)

Recherche la propriété nommée avec cette valeur PropertyId.

GetProperty(String)

Recherche la propriété qui porte ce nom de chaîne.

GetProperty(PropertyId, String)

Recherche la propriété nommée avec cette valeur PropertyId.

GetProperty(String, String)

Recherche la propriété qui porte ce nom de chaîne.

GetProperty(PropertyId)

Recherche la propriété nommée avec cette valeur PropertyId.

public virtual string GetProperty (Microsoft.CognitiveServices.Speech.PropertyId id);
abstract member GetProperty : Microsoft.CognitiveServices.Speech.PropertyId -> string
override this.GetProperty : Microsoft.CognitiveServices.Speech.PropertyId -> string
Public Overridable Function GetProperty (id As PropertyId) As String

Paramètres

id
PropertyId

ID de la propriété. Voir PropertyId

Retours

Valeur de la propriété

Remarques

Si la valeur de la propriété n’est pas définie, une chaîne vide est retournée.

S’applique à

GetProperty(String)

Recherche la propriété qui porte ce nom de chaîne.

public virtual string GetProperty (string propertyName);
abstract member GetProperty : string -> string
override this.GetProperty : string -> string
Public Overridable Function GetProperty (propertyName As String) As String

Paramètres

propertyName
String

Nom de la propriété

Retours

Valeur de la propriété

Remarques

Si la valeur de la propriété n’est pas définie, une chaîne vide est retournée. Dans la plupart des cas, vous utiliserez GetProperty(PropertyId) à la place de cette méthode.

S’applique à

GetProperty(PropertyId, String)

Recherche la propriété nommée avec cette valeur PropertyId.

public virtual string GetProperty (Microsoft.CognitiveServices.Speech.PropertyId id, string defaultValue);
abstract member GetProperty : Microsoft.CognitiveServices.Speech.PropertyId * string -> string
override this.GetProperty : Microsoft.CognitiveServices.Speech.PropertyId * string -> string
Public Overridable Function GetProperty (id As PropertyId, defaultValue As String) As String

Paramètres

id
PropertyId

ID de la propriété. Voir PropertyId

defaultValue
String

Valeur par défaut qui est retournée si aucune valeur n’est définie pour la propriété .

Retours

valeur de la propriété .

Remarques

Si la valeur de propriété n’est pas définie, la valeur par défaut spécifiée est retournée.

S’applique à

GetProperty(String, String)

Recherche la propriété qui porte ce nom de chaîne.

public virtual string GetProperty (string propertyName, string defaultValue);
abstract member GetProperty : string * string -> string
override this.GetProperty : string * string -> string
Public Overridable Function GetProperty (propertyName As String, defaultValue As String) As String

Paramètres

propertyName
String

Nom de la propriété.

defaultValue
String

Valeur par défaut qui est retournée si aucune valeur n’est définie pour la propriété .

Retours

valeur de la propriété .

Remarques

Un petit nombre de propriétés sont stockées à l’aide de noms de chaîne. Si la valeur de propriété n’est pas définie, la valeur par défaut spécifiée est retournée.

S’applique à