API version:
Show / Hide Table of Contents

Class StringEnum

Represents an enumeration where the members are strings.

Inheritance
System.Object
StringEnum
ApplicationCredentialsScheme
ApplicationCredentialsSigningUse
ApplicationSignOnMode
AuthenticationProviderType
AuthorizationServerCredentialsRotationMode
AuthorizationServerCredentialsUse
CatalogApplicationStatus
DNSRecordType
DomainCertificateSourceType
DomainCertificateType
DomainValidationStatus
EnabledStatus
EventHookChannelConfigAuthSchemeType
FactorProvider
FactorResultType
FactorStatus
FactorType
FeatureStageState
FeatureStageValue
FeatureType
GroupRuleStatus
GroupType
InlineHookStatus
InlineHookType
LinkedObjectDetailsType
LogAuthenticationProvider
LogCredentialProvider
LogCredentialType
LogSeverity
NetworkZoneAddressType
NetworkZoneStatus
NetworkZoneType
NetworkZoneUsage
OAuth2ScopeConsentGrantSource
OAuth2ScopeConsentGrantStatus
OAuthEndpointAuthenticationMethod
OAuthGrantType
OAuthResponseType
OpenIdConnectApplicationConsentMethod
OpenIdConnectApplicationIssuerMode
OpenIdConnectApplicationType
OpenIdConnectRefreshTokenRotationType
PasswordCredentialHashAlgorithm
PolicyRuleActionsEnrollSelf
PolicySubjectMatchType
PolicyType
ProfileMappingPropertyPushStatus
ProtocolRelayStateFormat
RoleAssignmentType
RoleStatus
RoleType
ScopeType
SessionAuthenticationMethod
SessionIdentityProviderType
SessionStatus
SmsTemplateType
UserNextLogin
UserSchemaAttributeMasterType
UserSchemaAttributeScope
UserSchemaAttributeType
UserSchemaAttributeUnion
UserStatus
Implements
System.IComparable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Okta.Sdk
Assembly: Okta.Sdk.dll
Syntax
public abstract class StringEnum : IComparable

Constructors

StringEnum(String)

Initializes a new instance of the StringEnum class given a string.

Declaration
public StringEnum(string value)
Parameters
Type Name Description
System.String value

The enumeration value.

Properties

Value

Gets the value of this enumeration member.

Declaration
public string Value { get; }
Property Value
Type Description
System.String

The enumeration value.

Methods

CompareTo(Object)

Declaration
public int CompareTo(object other)
Parameters
Type Name Description
System.Object other

The object to compare to.

Returns
Type Description
System.Int32

Create<T>(String)

Creates a new StringEnum with the specified value.

Declaration
public static T Create<T>(string item)
Parameters
Type Name Description
System.String item

The enum value.

Returns
Type Description
T

The created StringEnum.

Type Parameters
Name Description
T

The StringEnum type.

Remarks

Equivalent to calling new MyEnum(value) if MyEnum inherits from StringEnum. Use new unless you don't know the exact enum type at compile time.

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Operators

Equality(StringEnum, StringEnum)

Compares two StringEnum instances for value equality, ignoring case.

Declaration
public static bool operator ==(StringEnum x, StringEnum y)
Parameters
Type Name Description
StringEnum x

The left operand.

StringEnum y

The right operand.

Returns
Type Description
System.Boolean

true if the instances have equal values; false otherwise.

Implicit(StringEnum to String)

Gets the System.String value of a StringEnum member.

Declaration
public static implicit operator string (StringEnum enum)
Parameters
Type Name Description
StringEnum enum

The enumeration member.

Returns
Type Description
System.String

The string value.

Inequality(StringEnum, StringEnum)

Compares two StringEnum instances for value inequality, ignoring case.

Declaration
public static bool operator !=(StringEnum x, StringEnum y)
Parameters
Type Name Description
StringEnum x

The left operand.

StringEnum y

The right operand.

Returns
Type Description
System.Boolean

true if the instances do not have equal values; true otherwise.

Implements

System.IComparable
Back to top Copyright © 2021 Okta, Inc.
Generated with DocFx.