Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GettingValueExceptionEventArgs.ShouldThrow Property

Gets and sets a Boolean value that indicates whether the GetValue method should throw the exception associated with this event.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As GettingValueExceptionEventArgs
Dim value As Boolean

value = instance.ShouldThrow

instance.ShouldThrow = value

public bool ShouldThrow { get; set; }
/** @property */
public boolean get_ShouldThrow ()

/** @property */
public void set_ShouldThrow (boolean value)

public function get ShouldThrow () : boolean

public function set ShouldThrow (value : boolean)

Property Value

A Boolean value that indicates true if the method should throw an exception (default); otherwise, false is returned.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

© 2015 Microsoft