IResXResourceService.GetResXResourceReader 方法

定義

多載

GetResXResourceReader(String, Boolean)

傳回符合指定之的 resx 資源讀取器 resXFullNameReturns a resx resource reader that matches a given a resXFullName.

GetResXResourceReader(TextReader, Boolean, String)

傳回指定了和名稱的 resx 資源讀取器 basepathReturns a resx resource reader given a basepath and name.

GetResXResourceReader(String, Boolean)

傳回符合指定之的 resx 資源讀取器 resXFullNameReturns a resx resource reader that matches a given a resXFullName.

public:
 System::Resources::IResourceReader ^ GetResXResourceReader(System::String ^ resXFullName, bool useResXDataNodes);
public System.Resources.IResourceReader GetResXResourceReader (string resXFullName, bool useResXDataNodes);
abstract member GetResXResourceReader : string * bool -> System.Resources.IResourceReader
Public Function GetResXResourceReader (resXFullName As String, useResXDataNodes As Boolean) As IResourceReader

參數

resXFullName
String

建立指定檔案的讀取器。Creates a reader for the specified file.

useResXDataNodes
Boolean

如果這個值為 true,則讀取器會傳回一或多個, ResXDataNode 而不是資源在執行時間的物件類型,以找出 resx 參考的檔案If this value is true the reader returns one or more ResXDataNodes instead of the object type the resource becomes at runtime in order to figure out which files the resx references

傳回

IResourceReader

IResourceReader.IResourceReader.

適用於

GetResXResourceReader(TextReader, Boolean, String)

傳回指定了和名稱的 resx 資源讀取器 basepathReturns a resx resource reader given a basepath and name.

public:
 System::Resources::IResourceReader ^ GetResXResourceReader(System::IO::TextReader ^ textReader, bool useResXDataNodes, System::String ^ basePath);
public System.Resources.IResourceReader GetResXResourceReader (System.IO.TextReader textReader, bool useResXDataNodes, string basePath);
abstract member GetResXResourceReader : System.IO.TextReader * bool * string -> System.Resources.IResourceReader
Public Function GetResXResourceReader (textReader As TextReader, useResXDataNodes As Boolean, basePath As String) As IResourceReader

參數

textReader
TextReader

TextReader由傳回之包裝的 IResourceReaderThe TextReader that is wrapped by the returned IResourceReader.

useResXDataNodes
Boolean

如果這個值為 true,則讀取器會傳回一或多個, ResXDataNode 而不是資源在執行時間的物件類型,以找出 resx 參考的檔案If this value is true the reader returns one or more ResXDataNodes instead of the object type the resource becomes at runtime in order to figure out which files the resx references

basePath
String

資源檔的路徑。The path of the resource file.

傳回

IResourceReader

IResourceReader.IResourceReader.

適用於