ApplicationTrustCollection.Add(ApplicationTrust) 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.
Adds an element to the collection.
public:
int Add(System::Security::Policy::ApplicationTrust ^ trust);
public int Add (System.Security.Policy.ApplicationTrust trust);
[System.Security.SecurityCritical]
public int Add (System.Security.Policy.ApplicationTrust trust);
member this.Add : System.Security.Policy.ApplicationTrust -> int
[<System.Security.SecurityCritical>]
member this.Add : System.Security.Policy.ApplicationTrust -> int
Public Function Add (trust As ApplicationTrust) As Integer
Parameters
- trust
- ApplicationTrust
The ApplicationTrust object to add.
Returns
The index at which the new element was inserted.
- Attributes
Exceptions
trust
is null
.
The ApplicationIdentity property of the ApplicationTrust specified in trust
is null
.
Remarks
The ApplicationTrust object is added to the end of the collection. To remove an application trust that you previously added, use the Remove method.
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.