Find Method (resFile, type, name)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Find Method (resFile, type, name)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.ResourcesResourceCollectionFind(String, ResourceType, String)
Locates all resources in a file of a given type and language. For each located resource, a Resource instance (or subclass) is added to the collection.
Declaration Syntax
C# Visual Basic Visual C++ F#
public void Find(
	string resFile,
	ResourceType type,
	string name
)
Public Sub Find ( 
	resFile As String,
	type As ResourceType,
	name As String
)
public:
void Find(
	String^ resFile, 
	ResourceType^ type, 
	String^ name
)
member Find : 
        resFile : string * 
        type : ResourceType * 
        name : string -> unit 
Parameters
resFile (String)
The file to be searched for resources.
type (ResourceType)
The type of resource to search for; may be one of the ResourceType constants or a user-defined type.
name (String)
The name of the resource to search for.
Exceptions
Exception Condition
IOException resources could not be read from the file

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