Share via


DataParameter.IsOptional, propriété

Récupère une valeur booléenne indiquant si ce paramètre est facultatif, dans les cas où ce paramètre est un paramètre dérivé.

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

Syntaxe

'Déclaration
Public Overridable ReadOnly Property IsOptional As Boolean
public virtual bool IsOptional { get; }
public:
virtual property bool IsOptional {
    bool get ();
}
abstract IsOptional : bool with get 
override IsOptional : bool with get
function get IsOptional () : boolean

Valeur de propriété

Type : Boolean
Retourne true si ce paramètre est facultatif ; sinon retourne false.

Exceptions

Exception Condition
InvalidOperationException

Ce paramètre n'est pas dérivé.

Notes

Si ce paramètre n'a pas été créé comme dérivée, alors InvalidOperationException est déclenché.

Sécurité .NET Framework

Voir aussi

Référence

DataParameter Classe

Microsoft.VisualStudio.Data, espace de noms