Share via


EnumMember.Create Method

Definition

Overloads

Create(String, Byte, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

Create(String, Int16, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

Create(String, Int32, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

Create(String, Int64, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

Create(String, SByte, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

Create(String, Byte, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

public static System.Data.Entity.Core.Metadata.Edm.EnumMember Create (string name, byte value, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * byte * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.EnumMember
Public Shared Function Create (name As String, value As Byte, metadataProperties As IEnumerable(Of MetadataProperty)) As EnumMember

Parameters

name
String

The name of the enumeration member.

value
Byte

The value of the enumeration member.

metadataProperties
IEnumerable<MetadataProperty>

Metadata properties to be associated with the enumeration member.

Returns

The newly created EnumMember instance.

Exceptions

name is null or empty.

Applies to

Create(String, Int16, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

public static System.Data.Entity.Core.Metadata.Edm.EnumMember Create (string name, short value, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * int16 * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.EnumMember
Public Shared Function Create (name As String, value As Short, metadataProperties As IEnumerable(Of MetadataProperty)) As EnumMember

Parameters

name
String

The name of the enumeration member.

value
Int16

The value of the enumeration member.

metadataProperties
IEnumerable<MetadataProperty>

Metadata properties to be associated with the enumeration member.

Returns

The newly created EnumMember instance.

Exceptions

name is null or empty.

Applies to

Create(String, Int32, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

public static System.Data.Entity.Core.Metadata.Edm.EnumMember Create (string name, int value, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * int * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.EnumMember
Public Shared Function Create (name As String, value As Integer, metadataProperties As IEnumerable(Of MetadataProperty)) As EnumMember

Parameters

name
String

The name of the enumeration member.

value
Int32

The value of the enumeration member.

metadataProperties
IEnumerable<MetadataProperty>

Metadata properties to be associated with the enumeration member.

Returns

The newly created EnumMember instance.

Exceptions

name is null or empty.

Applies to

Create(String, Int64, IEnumerable<MetadataProperty>)

Creates a read-only EnumMember instance.

public static System.Data.Entity.Core.Metadata.Edm.EnumMember Create (string name, long value, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * int64 * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.EnumMember
Public Shared Function Create (name As String, value As Long, metadataProperties As IEnumerable(Of MetadataProperty)) As EnumMember

Parameters

name
String

The name of the enumeration member.

value
Int64

The value of the enumeration member.

metadataProperties
IEnumerable<MetadataProperty>

Metadata properties to be associated with the enumeration member.

Returns

The newly created EnumMember instance.

Exceptions

name is null or empty.

Applies to

Create(String, SByte, IEnumerable<MetadataProperty>)

Important

This API is not CLS-compliant.

Creates a read-only EnumMember instance.

[System.CLSCompliant(false)]
public static System.Data.Entity.Core.Metadata.Edm.EnumMember Create (string name, sbyte value, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * sbyte * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.EnumMember
Public Shared Function Create (name As String, value As SByte, metadataProperties As IEnumerable(Of MetadataProperty)) As EnumMember

Parameters

name
String

The name of the enumeration member.

value
SByte

The value of the enumeration member.

metadataProperties
IEnumerable<MetadataProperty>

Metadata properties to be associated with the enumeration member.

Returns

The newly created EnumMember instance.

Attributes

Exceptions

name is null or empty.

Applies to