Struct CredentialDialogProperties
Contains information that allows configuring the creation of a dialog that prompts the user for generic credentials.
Implements
Inherited Members
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Windows.dll
Syntax
[ExcludeFromCodeCoverage]
public readonly record struct CredentialDialogProperties : IEquatable<CredentialDialogProperties>
Constructors
| Edit this page View SourceCredentialDialogProperties(string)
Initializes a new instance of the CredentialDialogProperties struct.
Declaration
public CredentialDialogProperties(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Dialog message. |
CredentialDialogProperties(string?, string)
Initializes a new instance of the CredentialDialogProperties struct.
Declaration
public CredentialDialogProperties(string? title, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Dialog title. |
| string | message | Dialog message. |
CredentialDialogProperties(string, string?, int)
Initializes a new instance of the CredentialDialogProperties struct.
Declaration
public CredentialDialogProperties(string message, string? defaultUser, int lastWin32Error)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Dialog message. |
| string | defaultUser | Default user name. |
| int | lastWin32Error | Last Win32 error that occurred. Allows viewing generic Windows error messages in the native dialog. |
CredentialDialogProperties(string?, string, string?)
Initializes a new instance of the CredentialDialogProperties struct.
Declaration
public CredentialDialogProperties(string? title, string message, string? defaultUser)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Dialog title. |
| string | message | Dialog message. |
| string | defaultUser | Default user name. |
CredentialDialogProperties(string?, string, string?, bool)
Initializes a new instance of the CredentialDialogProperties struct.
Declaration
public CredentialDialogProperties(string? title, string message, string? defaultUser, bool showSave)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Dialog title. |
| string | message | Dialog message. |
| string | defaultUser | Default user name. |
| bool | showSave | Whether to show the option to save the provided credentials. |
CredentialDialogProperties(string?, string, string?, int)
Initializes a new instance of the CredentialDialogProperties struct.
Declaration
public CredentialDialogProperties(string? title, string message, string? defaultUser, int lastWin32Error)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Dialog title. |
| string | message | Dialog message. |
| string | defaultUser | Default user name. |
| int | lastWin32Error | Last Win32 error that occurred. Allows viewing generic Windows error messages in the native dialog. |
CredentialDialogProperties(string?, string, string?, int, bool)
Contains information that allows configuring the creation of a dialog that prompts the user for generic credentials.
Declaration
public CredentialDialogProperties(string? Title, string Message, string? DefaultUser, int LastWin32Error, bool ShowSave)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Title | Dialog title. |
| string | Message | Dialog message. |
| string | DefaultUser | Default user name. |
| int | LastWin32Error | Last Win32 error that occurred. Allows viewing generic Windows error messages in the native dialog. |
| bool | ShowSave | Whether to show the option to save the provided credentials. |
See Also
Properties
| Edit this page View SourceDefaultUser
Default user name.
Declaration
public string? DefaultUser { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
LastWin32Error
Last Win32 error that occurred. Allows viewing generic Windows error messages in the native dialog.
Declaration
public int LastWin32Error { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Message
Dialog message.
Declaration
public string Message { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ShowSave
Whether to show the option to save the provided credentials.
Declaration
public bool ShowSave { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Title
Dialog title.
Declaration
public string? Title { get; init; }
Property Value
| Type | Description |
|---|---|
| string |