EntityId 构造函数

定义

初始化 EntityId 类的新实例。Initializes a new instance of the EntityId class.

重载

EntityId()

初始化 EntityId 类的新实例。Initializes a new instance of the EntityId class.

EntityId(String)

初始化具有指定 ID的 EntityId 类的新实例。Initializes a new instance of the EntityId class that has the specified ID.

EntityId()

初始化 EntityId 类的新实例。Initializes a new instance of the EntityId class.

public:
 EntityId();
public EntityId ();
Public Sub New ()

注解

Id在新的实例中,将属性初始化为 nullThe Id property is initialized to null in the new instance.

适用于

EntityId(String)

初始化具有指定 ID的 EntityId 类的新实例。Initializes a new instance of the EntityId class that has the specified ID.

public:
 EntityId(System::String ^ id);
public EntityId (string id);
new System.IdentityModel.Metadata.EntityId : string -> System.IdentityModel.Metadata.EntityId
Public Sub New (id As String)

参数

id
String

用于初始化新实例的 ID。The ID with which to initialize the new instance. 初始化 Id 属性。Initializes the Id property.

适用于