ServiceObjectAttribute Class (POS for .NET v1.12 SDK Documentation)

2/27/2008

Defines a class-level attribute that can be used to identify the service object that implements the class.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=False, Inherited:=False)> _
Public NotInheritable Class ServiceObjectAttribute
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false)] 
public sealed class ServiceObjectAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple=false, Inherited=false)] 
public ref class ServiceObjectAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false) */ 
public final class ServiceObjectAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false) 
public final class ServiceObjectAttribute extends Attribute

Remarks

Used by PosExplorer class to determine that the class is a service object. The ServiceObjectAttribute class provides information about the device type, name, version, and so on.

Inheritance Hierarchy

System.Object
   System.Attribute
    Microsoft.PointOfService.ServiceObjectAttribute

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.

See Also

Reference

ServiceObjectAttribute Members
Microsoft.PointOfService Namespace