Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
---|
Dim driverFolder As String Dim createOption As CreateOptions Dim returnValue As DriverPath Dim driverPathCollection1 As DriverPathCollection returnValue = driverPathCollection1.Create(driverFolder, createOption) |
Syntax
Visual Basic |
---|
Public Function Create( _ ByVal driverFolder As String, _ ByVal createOption As CreateOptions _ ) As DriverPath |
C# |
---|
public DriverPath Create( string driverFolder, CreateOptions createOption ); |
C++ |
---|
public: DriverPath^ Create( String^ driverFolder, CreateOptions createOption ); |
J# |
---|
public DriverPath Create( System.String driverFolder, CreateOptions createOption ); |
JScript |
---|
public function Create( driverFolder : String, createOption : CreateOptions ) : DriverPath; |
Parameters
- driverFolder
-
Path to the folder containing the driver.
- createOption
-
Enumeration element that determines whether to return the existing instance or throw an exception when the same driver (identified by driverFolder) has already been added to answer file.
Return Value
A new instance of DriverPath.Remarks
System.ArgumentNullException is thrown if driverFolder is null or empty.
System.InvalidOperationException is thrown if the driver (identified by driverFolder) has already been added to answer file, and CreateOptions is FailIfExists.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.