IDesignTimeResourceWriter 介面

定義

DesignTimeResourceProviderFactory 類別用於在設計階段當地語系化資料。Used by the DesignTimeResourceProviderFactory class to localize data at design time.

public interface class IDesignTimeResourceWriter : System::Resources::IResourceWriter
public interface IDesignTimeResourceWriter : System.Resources.IResourceWriter
type IDesignTimeResourceWriter = interface
    interface IResourceWriter
    interface IDisposable
Public Interface IDesignTimeResourceWriter
Implements IResourceWriter
實作

方法

AddResource(String, Byte[])

將 8 位元不帶正負號的整數 (Unsigned Integer) 陣列當做具名資源,加入被寫入的資源清單。Adds an 8-bit unsigned integer array as a named resource to the list of resources to be written.

(繼承來源 IResourceWriter)
AddResource(String, Object)

Object 型別的具名資源加入要被寫入的資源清單中。Adds a named resource of type Object to the list of resources to be written.

(繼承來源 IResourceWriter)
AddResource(String, String)

String 型別的具名資源加入要被寫入的資源清單中。Adds a named resource of type String to the list of resources to be written.

(繼承來源 IResourceWriter)
Close()

關閉基礎資源檔或資料流,確保所有資料已經寫入檔案。Closes the underlying resource file or stream, ensuring all the data has been written to the file.

(繼承來源 IResourceWriter)
CreateResourceKey(String, Object)

使用提供的字串建立索引鍵,以用於從指定的資源擷取資料。Creates a key, using the provided string, to use to retrieve data from the given resource.

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(繼承來源 IDisposable)
Generate()

將所有藉由 AddResource(String, String) 方法加入的資源寫入輸出檔或資料流。Writes all the resources added by the AddResource(String, String) method to the output file or stream.

(繼承來源 IResourceWriter)

適用於

另請參閱