Share via


ResourceDescription Constructors

Definition

Overloads

ResourceDescription(String, Func<Stream>, Boolean)

Creates a representation of a resource whose contents are to be embedded in the output assembly.

ResourceDescription(String, String, Func<Stream>, Boolean)

Creates a representation of a resource whose file name will be recorded in the assembly.

ResourceDescription(String, Func<Stream>, Boolean)

Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs

Creates a representation of a resource whose contents are to be embedded in the output assembly.

public:
 ResourceDescription(System::String ^ resourceName, Func<System::IO::Stream ^> ^ dataProvider, bool isPublic);
public ResourceDescription (string resourceName, Func<System.IO.Stream> dataProvider, bool isPublic);
new Microsoft.CodeAnalysis.ResourceDescription : string * Func<System.IO.Stream> * bool -> Microsoft.CodeAnalysis.ResourceDescription
Public Sub New (resourceName As String, dataProvider As Func(Of Stream), isPublic As Boolean)

Parameters

resourceName
String

Resource name.

dataProvider
Func<Stream>

The callers will dispose the result after use. This allows the resources to be opened and read one at a time.

isPublic
Boolean

True if the resource is public.

Remarks

Returns a stream of the data to embed.

Applies to

ResourceDescription(String, String, Func<Stream>, Boolean)

Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs
Source:
ResourceDescription.cs

Creates a representation of a resource whose file name will be recorded in the assembly.

public:
 ResourceDescription(System::String ^ resourceName, System::String ^ fileName, Func<System::IO::Stream ^> ^ dataProvider, bool isPublic);
public ResourceDescription (string resourceName, string fileName, Func<System.IO.Stream> dataProvider, bool isPublic);
public ResourceDescription (string resourceName, string? fileName, Func<System.IO.Stream> dataProvider, bool isPublic);
new Microsoft.CodeAnalysis.ResourceDescription : string * string * Func<System.IO.Stream> * bool -> Microsoft.CodeAnalysis.ResourceDescription
Public Sub New (resourceName As String, fileName As String, dataProvider As Func(Of Stream), isPublic As Boolean)

Parameters

resourceName
String

Resource name.

fileName
String

File name with an extension to be stored in metadata.

dataProvider
Func<Stream>

The callers will dispose the result after use. This allows the resources to be opened and read one at a time.

isPublic
Boolean

True if the resource is public.

Remarks

Function returning a stream of the resource content (used to calculate hash).

Applies to