Edit

Share via


Evidence.AddHost(Object) Method

Definition

Caution

Evidence.AddHost has been deprecated. Use AddHostEvidence instead.

Caution

This method is obsolete. Please use AddHostEvidence instead.

Caution

This API is now deprecated.

Adds the specified evidence supplied by the host to the evidence set.

public:
 void AddHost(System::Object ^ id);
[System.Obsolete("Evidence.AddHost has been deprecated. Use AddHostEvidence instead.")]
public void AddHost(object id);
[System.Obsolete("This method is obsolete. Please use AddHostEvidence instead.")]
public void AddHost(object id);
public void AddHost(object id);
[System.Obsolete]
public void AddHost(object id);
[<System.Obsolete("Evidence.AddHost has been deprecated. Use AddHostEvidence instead.")>]
member this.AddHost : obj -> unit
[<System.Obsolete("This method is obsolete. Please use AddHostEvidence instead.")>]
member this.AddHost : obj -> unit
member this.AddHost : obj -> unit
[<System.Obsolete>]
member this.AddHost : obj -> unit
Public Sub AddHost (id As Object)

Parameters

id
Object

Any evidence object.

Attributes

Exceptions

id is null.

id is not serializable.

Remarks

Use this method for evidence supplied by the host.

Note

This method does not perform a check to prevent adding duplicate types of evidence. Many host evidence objects can exist at the same time.

Applies to