Represents information on a distribution share.
Namespace:
Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly:
Microsoft.ComponentStudio.ComponentPlatformInterface (in
microsoft.componentstudio.componentplatforminterface.dll)
Usage
Syntax
Visual Basic |
NotInheritable Public Class DistributionShareInfo
|
C# |
public static class DistributionShareInfo
|
C++ |
public ref class DistributionShareInfo abstract sealed
|
J# |
public final abstract class DistributionShareInfo
|
JScript |
public abstract class DistributionShareInfo
|
Example
In this example, you check if a specified folder
contains a distribution share. If it does, you display its
properties.
Note: |
To run this example, change the path name of the folder
myDirectory to the path name of the distribution share
folder on your local computer. |
// DistributionShareInfo.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Microsoft.ComponentStudio.ComponentPlatformInterface;
namespace DistShareInfo
{
class MyClass
{
static void Main(string[] args)
{
// Set the catalog directory:
string myDirectory = @"C:\DistributionShare";
// Get all catalogs in the specified directory:
if (DistributionShareInfo.IsDistributionShare(myDirectory))
{
Console.WriteLine("OemFolder: {0}",
DistributionShareInfo.OemFolder);
Console.WriteLine("OemKeyName: {0}",
DistributionShareInfo.OemKeyName);
Console.WriteLine("OutOfBoxDriverExtension: {0}",
DistributionShareInfo.OutOfBoxDriverExtension);
Console.WriteLine("OutOfBoxDriversFolder: {0}",
DistributionShareInfo.OutOfBoxDriversFolder);
Console.WriteLine("PackageCabExtension: {0}",
DistributionShareInfo.PackageCabExtension);
Console.WriteLine("PackageMumExtension: {0}",
DistributionShareInfo.PackageMumExtension);
Console.WriteLine("PackagesFolder: {0}",
DistributionShareInfo.PackagesFolder);
}
Console.WriteLine(
"The folder doesn't contain a distribution share");
}
}
}
/* Output:
OemFolder: $OEM$ Folders
OemKeyName: $oem$
OutOfBoxDriverExtension: .inf
OutOfBoxDriversFolder: Out-of-Box Drivers
PackageCabExtension: .cab
PackageMumExtension: .mum
PackagesFolder: Packages
*/
|
Inheritance
Hierarchy
System.Object
Microsoft.ComponentStudio.ComponentPlatformInterface.DistributionShareInfo
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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server
2003, Windows Vista, and Windows 2000
Target Platforms
See Also