Compartilhar via


DataParameter.IsOptional Property

Gets a Boolean value indicating whether the current parameter is optional, provided that it is derived.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public ReadOnly Property IsOptional As Boolean
public bool IsOptional { get; }
public:
virtual property bool IsOptional {
    bool get () sealed;
}
abstract IsOptional : bool with get 
override IsOptional : bool with get
final function get IsOptional () : boolean

Property Value

Type: System.Boolean
true if this parameter is optional; otherwise, false.

Implements

IVsDataParameterDescriptor.IsOptional

Exceptions

Exception Condition
InvalidOperationException

The parameter is not derived.

.NET Framework Security

See Also

Reference

DataParameter Class

Microsoft.VisualStudio.Data.Framework Namespace