Compartir a través de


PolicyEnvelope Class

Encapsulates a policy instance together with some other properties.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.PolicyEnvelope

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaración
Public NotInheritable Class PolicyEnvelope
public sealed class PolicyEnvelope
public ref class PolicyEnvelope sealed
[<Sealed>]
type PolicyEnvelope =  class end
public final class PolicyEnvelope

The PolicyEnvelope type exposes the following members.

Constructors

  Name Description
Public method PolicyEnvelope Creates a new policy envelope for the specified policy.

Top

Properties

  Name Description
Public property Enabled Gets or sets a flag that describes whether this policy may be evaluated.
Public property Policy Gets or sets the policy that is contained in this envelope.
Public property Type Gets the policy type of the policy that is stored in this envelope.

Top

Methods

  Name Description
Public method Equals Compares this PolicyEnvelope with another for equality. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets the hash code for this object. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace