Show / Hide Table of Contents

Struct CredentialDialogProperties

Contains information that allows configuring the creation of a dialog that prompts the user for generic credentials.

Implements
IEquatable<CredentialDialogProperties>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Windows.dll
Syntax
[ExcludeFromCodeCoverage]
public readonly record struct CredentialDialogProperties : IEquatable<CredentialDialogProperties>

Constructors

| Edit this page View Source

CredentialDialogProperties(string)

Initializes a new instance of the CredentialDialogProperties struct.

Declaration
public CredentialDialogProperties(string message)
Parameters
Type Name Description
string message

Dialog message.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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
https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

Properties

| Edit this page View Source

DefaultUser

Default user name.

Declaration
public string? DefaultUser { get; init; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

Message

Dialog message.

Declaration
public string Message { get; init; }
Property Value
Type Description
string
| Edit this page View Source

ShowSave

Whether to show the option to save the provided credentials.

Declaration
public bool ShowSave { get; init; }
Property Value
Type Description
bool
| Edit this page View Source

Title

Dialog title.

Declaration
public string? Title { get; init; }
Property Value
Type Description
string

Implements

IEquatable<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)

See Also

https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX