public X509AlternativeName(
X509AlternativeNamesEnum type,
Object value
)
Public Sub New (
type As X509AlternativeNamesEnum,
value As Object
)
public:
X509AlternativeName(
X509AlternativeNamesEnum type,
Object^ value
)
new :
type : X509AlternativeNamesEnum *
value : Object -> X509AlternativeName
Alternative Name Type | Value Type |
---|---|
OtherName | Not supported in this constructor. |
Rfc822Name | The value must be a string. |
DnsName | The value must be a string. |
DirectoryName | Can be a string that represents a X.500 distinguished name, or a X500DistinguishedName object. |
URL | Can be a string that represents an absolute or relative URL or a Uri object. |
IpAddress | Must be a string that represents either, IPv4 or IPv6 address. For IPv6 address shortcuts are allowed (for example, ::1). For X.509 Name Constraints certificate extension purposes, you must provide either, IPv4 or IPv6 address with network mask. In this case, network mask must be specified as the number of bits held by mask after a slash character. For example, IPv4 network "192.168.5.0" with network mask "255.255.255.0" must be passed as "192.168.5.0/24". The same syntax is used for IPv6 networks. To specify individual IP address, network mask bust be set to 32 for IPv4 addresses and 128 for IPv6 addresses. |
RegisteredId | Can be a string that represents a registered in the IANA (Internet Assigned Numbers Authority) or ISO (International Standards Organization) object identifier, or an Oid object or Guid object that contains registered object identifier. |
Guid | Can be a string that represents a globally unique identifier and should identify a server to the Active Directory replication system as a domain controller or an Oid object. |
UserPrincipalName | Must be a string that is a user logon name in email address format. |
InvalidOperationException | The constructor cannot be used for OtherName type. |
ArgumentException | The value does not fall within the expected type. For acceptable value types see Remarks section. |