OpenIdConnectConfiguration.Write 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.
Overloads
Write(OpenIdConnectConfiguration) |
Serializes the OpenIdConnectConfiguration object to a json string. |
Write(OpenIdConnectConfiguration, Stream) |
Writes an OpenIdConnectConfiguration as JSON to the |
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.
Exceptions
Thrown if configuration
or stream
is null
.
Remarks
Because a Stream is provided, this method does not return a value.