Partager via


LinkLauncher.HasValidExtensions Method (String, String, String)

 

Determines whether there are valid extensions in the given folder that match the given file specification. The method also checks for valid extensions inside of any DLL assembly that is found.

Namespace:   Microsoft.WindowsServerSolutions.Common.Controls
Assembly:  AdminCommon (in AdminCommon.dll)

Syntax

public static bool HasValidExtensions(
    string dataFilePath,
    string fileExtension,
    string resourcesFileSpec
)
public:
static bool HasValidExtensions(
    String^ dataFilePath,
    String^ fileExtension,
    String^ resourcesFileSpec
)
Public Shared Function HasValidExtensions (
    dataFilePath As String,
    fileExtension As String,
    resourcesFileSpec As String
) As Boolean

Parameters

  • dataFilePath
    Type: System.String

    The local disk location where this control can find XML or DLL files containing data for the links.

  • fileExtension
    Type: System.String

    The extension to use to when loading the list for wizards (*.wizlink) or property pages (*.proplink).

  • resourcesFileSpec
    Type: System.String

    The resource file specification for retrieving the localized resources from an assembly (for example, ".home.resources").

Return Value

Type: System.Boolean

A Boolean: true if there are valid extensions; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

dataFilePath, fileExtension, or resourcesFileSpec is null or empty.

DirectoryNotFoundException

dataFilePath does not represent an existing directory.

See Also

LinkLauncher Class
Microsoft.WindowsServerSolutions.Common.Controls Namespace

Return to top