共用方式為


ErrorCategoryInfo.TargetName Property

Definition

Text description of the target object.

public:
 property System::String ^ TargetName { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ TargetName { Platform::String ^ get(); void set(Platform::String ^ value); };
public string TargetName { get; set; }
member this.TargetName : string with get, set
Public Property TargetName As String

Property Value

text description of the target object

Remarks

By default, this is TargetObject.ToString(), or the empty string if the target object is null. The default can be overridden by calling Set with a non-empty value, for example "John Doe".

Applies to