Evidence.AddHost(Object) 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.
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.