ResourceIndexer Constructors

Definition

Overloads

ResourceIndexer(Uri)

Creates a new ResourceIndexer specifying the root of the project files.

ResourceIndexer(Uri, Uri)

Creates a new ResourceIndexer specifying the root of the project files and an extension DLL.

ResourceIndexer(Uri)

Creates a new ResourceIndexer specifying the root of the project files.

public:
 ResourceIndexer(Uri ^ projectRoot);
 ResourceIndexer(Uri const& projectRoot);
/// [Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of IResourceIndexerFactory.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
 ResourceIndexer(Uri const& projectRoot);
public ResourceIndexer(System.Uri projectRoot);
[Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of IResourceIndexerFactory.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
public ResourceIndexer(System.Uri projectRoot);
function ResourceIndexer(projectRoot)
Public Sub New (projectRoot As Uri)

Parameters

projectRoot
Uri Uri

The project root folder (file:// URI).

Attributes

Remarks

The parameter projectRoot represents the root of the project for the files to be produced. This is used to determine file paths relative to the package that will contain them.

The path must be an absolute path with the drive letter specified. Long file paths are not supported.

Example:

var idxr = new Windows.ApplicationModel.Resources.Management.ResourceIndexer( 
    new Uri("file:///C:\MyApp\"));

See also

Applies to

ResourceIndexer(Uri, Uri)

Creates a new ResourceIndexer specifying the root of the project files and an extension DLL.

public:
 ResourceIndexer(Uri ^ projectRoot, Uri ^ extensionDllPath);
 ResourceIndexer(Uri const& projectRoot, Uri const& extensionDllPath);
/// [Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of IResourceIndexerFactory2.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
 ResourceIndexer(Uri const& projectRoot, Uri const& extensionDllPath);
public ResourceIndexer(System.Uri projectRoot, System.Uri extensionDllPath);
[Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of IResourceIndexerFactory2.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
public ResourceIndexer(System.Uri projectRoot, System.Uri extensionDllPath);
function ResourceIndexer(projectRoot, extensionDllPath)
Public Sub New (projectRoot As Uri, extensionDllPath As Uri)

Parameters

projectRoot
Uri Uri

The project root folder (file:// URI).

extensionDllPath
Uri Uri

The extension DLL path (file:// URI).

Attributes

Remarks

The parameter projectRoot represents the root of the project for the files to be produced. This is used to determine file paths relative to the package that will contain them.

The parameter extensionDllPath represents a full path to an extension DLL that is Microsoft-signed and implements the ext-ms-win-mrmcorer-environment-l1 API set. This determines the file path from where the MRT environment extension DLL will be loaded.

The paths must be absolute paths with the drive letter specified. Long file paths are not supported.

This example shows the constructor used to index source assets intended for a Windows Phone project:

var idxr = new Windows.ApplicationModel.Resources.Management.ResourceIndexer( 
    new Uri("file:///C:\MyApp\"), 
    new Uri("file:///C:\WPSDKPATH\bin\MrmEnvironmentExtDl.dll"));

See also

Applies to