ApplicationTrustCollection.AddRange 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.
Copies a range of ApplicationTrust objects to the end of the collection.
Overloads
AddRange(ApplicationTrust[]) |
Copies the elements of the specified ApplicationTrust array to the end of the collection. |
AddRange(ApplicationTrustCollection) |
Copies the elements of the specified ApplicationTrustCollection to the end of the collection. |
AddRange(ApplicationTrust[])
Copies the elements of the specified ApplicationTrust array to the end of the collection.
public:
void AddRange(cli::array <System::Security::Policy::ApplicationTrust ^> ^ trusts);
public void AddRange (System.Security.Policy.ApplicationTrust[] trusts);
[System.Security.SecurityCritical]
public void AddRange (System.Security.Policy.ApplicationTrust[] trusts);
member this.AddRange : System.Security.Policy.ApplicationTrust[] -> unit
[<System.Security.SecurityCritical>]
member this.AddRange : System.Security.Policy.ApplicationTrust[] -> unit
Public Sub AddRange (trusts As ApplicationTrust())
Parameters
- trusts
- ApplicationTrust[]
An array of type ApplicationTrust containing the objects to add to the collection.
- Attributes
Exceptions
trusts
is null
.
The ApplicationIdentity property of an ApplicationTrust specified in trust
is null
.
Remarks
The ApplicationTrust objects contained in the trusts
array are appended to the end of the collection.
To remove a range of application trusts that you previously added, use the RemoveRange method.
Applies to
AddRange(ApplicationTrustCollection)
Copies the elements of the specified ApplicationTrustCollection to the end of the collection.
public:
void AddRange(System::Security::Policy::ApplicationTrustCollection ^ trusts);
public void AddRange (System.Security.Policy.ApplicationTrustCollection trusts);
[System.Security.SecurityCritical]
public void AddRange (System.Security.Policy.ApplicationTrustCollection trusts);
member this.AddRange : System.Security.Policy.ApplicationTrustCollection -> unit
[<System.Security.SecurityCritical>]
member this.AddRange : System.Security.Policy.ApplicationTrustCollection -> unit
Public Sub AddRange (trusts As ApplicationTrustCollection)
Parameters
- trusts
- ApplicationTrustCollection
A ApplicationTrustCollection containing the objects to add to the collection.
- Attributes
Exceptions
trusts
is null
.
The ApplicationIdentity property of an ApplicationTrust specified in trust
is null
.
Remarks
The ApplicationTrust objects contained in trusts
are appended to the end of the collection.
You can use the AddRange method to quickly add another collection of application trust objects to the collection instead of manually adding each application trust to the collection using the Add method.
To remove a range of application trusts that you previously added, use the RemoveRange method.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기