ObjectContext.DefaultContainerName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定預設容器名稱。
public:
property System::String ^ DefaultContainerName { System::String ^ get(); void set(System::String ^ value); };
public string DefaultContainerName { get; set; }
member this.DefaultContainerName : string with get, set
Public Property DefaultContainerName As String
屬性值
A String 是預設的容器名稱。
備註
DefaultContainerName 永遠不會回傳 null;它要麼回傳已設定的值,要麼回傳空字串。 使用者可以將此屬性設為 null,但內部名稱會設為空字串,因此使用者不必同時檢查空字串與 null。
預設容器名稱也會被定義為建構子的一部分。 若預設容器名稱是透過受保護建構子設定,該屬性將變成唯讀。