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
'Usage
Dim instance As DataParameter 
Dim value As Boolean 

value = instance.IsOptional
public virtual bool IsOptional { get; }
public:
virtual property bool IsOptional {
    bool get ();
}
public 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

DataParameter Members

Microsoft.VisualStudio.Data Namespace