共用方式為


OpenIdConnectConfiguration.Write Method

Definition

Overloads

Write(OpenIdConnectConfiguration)

Serializes the OpenIdConnectConfiguration object to a json string.

Write(OpenIdConnectConfiguration, Stream)

Writes an OpenIdConnectConfiguration as JSON to the stream.

Write(OpenIdConnectConfiguration)

Serializes the OpenIdConnectConfiguration object to a json string.

public static string Write (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration configuration);
static member Write : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration -> string
Public Shared Function Write (configuration As OpenIdConnectConfiguration) As String

Parameters

configuration
OpenIdConnectConfiguration

OpenIdConnectConfiguration object to serialize.

Returns

json string representing the configuration object.

Exceptions

Thrown if configuration is null.

Applies to

Write(OpenIdConnectConfiguration, Stream)

Writes an OpenIdConnectConfiguration as JSON to the stream.

public static void Write (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration configuration, System.IO.Stream stream);
static member Write : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration * System.IO.Stream -> unit
Public Shared Sub Write (configuration As OpenIdConnectConfiguration, stream As Stream)

Parameters

configuration
OpenIdConnectConfiguration

The OpenIdConnectConfiguration to serialize.

stream
Stream

The Stream to write to.

Exceptions

Thrown if configuration or stream is null.

Remarks

Because a Stream is provided, this method does not return a value.

Applies to