Share via


DataParameter.IsOptional Property

Retrieves a Boolean value indicating whether this parameter is optional, in cases where this parameter is a derived parameter.

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

Syntax

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

Property Value

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

Exceptions

Exception Condition
InvalidOperationException

This parameter is not derived.

Remarks

If this parameter was not created as derived, then an InvalidOperationException is raised.

.NET Framework Security

See Also

Reference

DataParameter Class

Microsoft.VisualStudio.Data Namespace