SystemTarget.GetTarget Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetTarget() |
Gets the target instance. |
| GetTarget<TTarget>() |
Gets the target. |
GetTarget()
Gets the target instance.
public object? GetTarget();
abstract member GetTarget : unit -> obj
override this.GetTarget : unit -> obj
Public Function GetTarget () As Object
Returns
The target.
Implements
Applies to
GetTarget<TTarget>()
Gets the target.
public TTarget GetTarget<TTarget>() where TTarget : class;
abstract member GetTarget : unit -> 'arget (requires 'arget : null)
override this.GetTarget : unit -> 'arget (requires 'arget : null)
Public Function GetTarget(Of TTarget As Class) () As TTarget
Type Parameters
- TTarget
The target type.
Returns
The target.