AnnotationResource 建構函式

定義

初始化 AnnotationResource 類別的新執行個體。

多載

AnnotationResource()

此建構函式支援 Windows Presentation Foundation 基礎結構,但並不適合直接透過您的程式碼使用。

AnnotationResource(Guid)

此建構函式支援 Windows Presentation Foundation 基礎結構,但並不適合直接透過您的程式碼使用。

AnnotationResource(String)

使用指定的名稱,初始化 AnnotationResource 類別的新執行個體。

AnnotationResource()

此建構函式支援 Windows Presentation Foundation 基礎結構,但並不適合直接透過您的程式碼使用。

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

備註

此建構函式僅供注釋序列化程式使用。 針對應用程式需求,請使用 AnnotationResource 接受指定 name 參數的建構函式。

適用於

AnnotationResource(Guid)

此建構函式支援 Windows Presentation Foundation 基礎結構,但並不適合直接透過您的程式碼使用。

public:
 AnnotationResource(Guid id);
public AnnotationResource (Guid id);
new System.Windows.Annotations.AnnotationResource : Guid -> System.Windows.Annotations.AnnotationResource
Public Sub New (id As Guid)

參數

id
Guid

識別此資源的全域唯一識別碼 (GUID)。

例外狀況

id 等於 Guid.Empty。

備註

此建構函式僅供注釋序列化程式使用。 針對應用程式需求,請使用 AnnotationResource 接受指定 name 參數的建構函式。

適用於

AnnotationResource(String)

使用指定的名稱,初始化 AnnotationResource 類別的新執行個體。

public:
 AnnotationResource(System::String ^ name);
public AnnotationResource (string name);
new System.Windows.Annotations.AnnotationResource : string -> System.Windows.Annotations.AnnotationResource
Public Sub New (name As String)

參數

name
String

識別這個資源的名稱,區分相同附註中定義的其他 AnchorsCargos

例外狀況

namenull

備註

參數 name 僅供方便使用,而且不會在字串上執行驗證。

AnnotationResource 構函式會自動建立可透過 屬性存取的 Id GUID。

適用於