Прочетете на английски Редактиране

Споделяне чрез


TrustManagerContext Constructors

Definition

Initializes a new instance of the TrustManagerContext class.

Overloads

TrustManagerContext()

Initializes a new instance of the TrustManagerContext class.

TrustManagerContext(TrustManagerUIContext)

Initializes a new instance of the TrustManagerContext class using the specified TrustManagerUIContext object.

TrustManagerContext()

Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs

Initializes a new instance of the TrustManagerContext class.

C#
public TrustManagerContext();

Remarks

The following table shows the initial property values for a new instance of the TrustManagerContext class.

Property Initial value
IgnorePersistedDecision false
KeepAlive false
NoPrompt false
Persist true
PreviousApplicationIdentity null
UIContext Run

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

TrustManagerContext(TrustManagerUIContext)

Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs
Source:
TrustManagerContext.cs

Initializes a new instance of the TrustManagerContext class using the specified TrustManagerUIContext object.

C#
public TrustManagerContext(System.Security.Policy.TrustManagerUIContext uiContext);

Parameters

uiContext
TrustManagerUIContext

One of the TrustManagerUIContext values that specifies the type of trust manager user interface to use.

Remarks

This constructor initializes the properties to the same settings as the parameterless constructor, with the exception of the UIContext property, which is set to the value that is passed in.

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10