This documentation is archived and is not being maintained.

PrintQueue.ShareName Property

Gets or sets a name for the printer that is seen by users on the network when it is shared.

Namespace: System.Printing
Assembly: System.Printing (in system.printing.dll)

Public Overridable Property ShareName As String
Dim instance As PrintQueue
Dim value As String

value = instance.ShareName

instance.ShareName = value
/** @property */
public String get_ShareName ()

/** @property */
public void set_ShareName (String inShareName)

public function get ShareName () : String

public function set ShareName (inShareName : String)

Not applicable.

Property Value

A String specifying the public name of a shared printer.

The PrintQueue object also has a read only FullName property and a writeable Name property. For queues on the local print server, these properties have the same value.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0