Editare

Partajați prin


ResXFileRef Constructors

Definition

Initializes a new instance of the ResXFileRef class.

Overloads

ResXFileRef(String, String)

Creates a new instance of the ResXFileRef class that references the specified file.

ResXFileRef(String, String, Encoding)

Initializes a new instance of the ResXFileRef class that references the specified file.

ResXFileRef(String, String)

Creates a new instance of the ResXFileRef class that references the specified file.

public:
 ResXFileRef(System::String ^ fileName, System::String ^ typeName);
public ResXFileRef (string fileName, string typeName);
new System.Resources.ResXFileRef : string * string -> System.Resources.ResXFileRef
Public Sub New (fileName As String, typeName As String)

Parameters

fileName
String

The file to reference.

typeName
String

The type of the resource that is referenced.

Exceptions

fileName or typeName is null.

Remarks

The type referred to by the typeName parameter must support a public constructor that accepts a Stream object as a parameter.

Applies to

ResXFileRef(String, String, Encoding)

Initializes a new instance of the ResXFileRef class that references the specified file.

public:
 ResXFileRef(System::String ^ fileName, System::String ^ typeName, System::Text::Encoding ^ textFileEncoding);
public ResXFileRef (string fileName, string typeName, System.Text.Encoding textFileEncoding);
new System.Resources.ResXFileRef : string * string * System.Text.Encoding -> System.Resources.ResXFileRef
Public Sub New (fileName As String, typeName As String, textFileEncoding As Encoding)

Parameters

fileName
String

The file to reference.

typeName
String

The type name of the resource that is referenced.

textFileEncoding
Encoding

The encoding used in the referenced file.

Remarks

The type referred to by the typeName parameter must support a public constructor that accepts a Stream object as a parameter.

Applies to