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
'Declaración
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.