Resource Class

DTF API

Copy image CopyHover image
Deployment Tools Foundation Resource Class
Deployment Tools Foundation NamespacesMicrosoft.Deployment.ResourcesResource
Represents a Win32 resource which can be loaded from and saved to a PE file.
Declaration Syntax
C# Visual Basic Visual C++ F#
public class Resource
Public Class Resource
public ref class Resource
type Resource =  class end
Members
All Members Constructors Methods Properties



Icon Member Description
Resource(ResourceType, String, Int32)
Creates a new Resource object without any data. The data can be later loaded from a file.

Resource(ResourceType, String, Int32, array<Byte>[]()[][])
Creates a new Resource object with data. The data can be later saved to a file.

Data
Gets or sets the raw data of the resource.

Equals(Object)
Tests if type, name, and locale of this Resource object match another Resource object.
(Overrides Object.Equals(Object).)
Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Gets a hash code for this Resource object.
(Overrides Object.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Load(String)
Loads the resource data from a file. The file is searched for a resource with matching type, name, and locale.

Locale
Gets or sets the locale of the resource.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Name
Gets or sets the name of the resource. For a numeric resource identifier, the decimal number is prefixed with a "#".

ResourceType
Gets or sets the type of the resource. This may be one of the ResourceType constants or a user-defined type name.

Save(String)
Saves the resource to a file. Any existing resource data with matching type, name, and locale is overwritten.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Inheritance Hierarchy

Assembly: Microsoft.Deployment.Resources (Module: Microsoft.Deployment.Resources.dll) Version: 3.0.0.0 (3.11.1.2318)