Win32_PrinterShare class
The Win32_PrinterShare association WMI class relates a local printer and the share that represents it as it is viewed over a network.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_PrinterShare : CIM_Dependency
{
Win32_Printer REF Antecedent;
Win32_Share REF Dependent;
};
Members
The Win32_PrinterShare class has these types of members:
Properties
The Win32_PrinterShare class has these properties.
- Antecedent
-
- Data type: Win32_Printer
- Access type: Read-only
- Qualifiers: Key
Reference to the instance representing the local printer shared in this association.
- Dependent
-
- Data type: Win32_Share
- Access type: Read-only
- Qualifiers: Key
Reference to the instance representing the share of the printer in this association.
Remarks
The Win32_PrinterShare class is derived from CIM_Dependency.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012