You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Implement this method to convert raw track data.
138
-
return new MsrTrackData();
139
-
}
140
-
#endregion
137
+
// Your code here:
138
+
// Implement this method to convert raw track data.
139
+
returnnewMsrTrackData();
141
140
}
141
+
#endregion
142
142
}
143
+
}
144
+
```
143
145
144
146
In order to simplify this sample, the code does not implement any globalization features. For example, the value for **Properties.DeviceDescription** would typically be read from a localized strings resource file.
Copy file name to clipboardExpand all lines: docs/framework/additional-apis/pos-for-net/exception-classes.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ The following table provides a mapping between the UnifiedPOS standard error cod
53
53
| NotClaimed | E_NOTCLAIMED | The POS application attempted to access an exclusive-use device that must be claimed before the method or property set action can be used. |
54
54
| Offline | E_OFFLINE | The POS device is offline. |
55
55
| Timeout | E_TIMEOUT | The Service Object timed out waiting for a response from the POS device. |
56
+
56
57
## Example
57
58
58
59
The following code example demonstrates how MSR handles POS exceptions and uses the **ErrorCodes** contained in those exceptions to gather information about them.
Copy file name to clipboardExpand all lines: docs/framework/additional-apis/pos-for-net/using-visual-studio-net-management-extensions-and-the-pos-for-net-wmi-management-classes.md
+31-29Lines changed: 31 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -41,35 +41,37 @@ This feature requires that Visual Studio 2013 and POS for .NET are installed on
41
41
42
42
The following code example demonstrates the use of the **PosDevice** class **GetInstances** method to enumerate Point of Service devices. It creates a collection of the devices within a scope. It then lists the type, name and path for each device in the collection and indicates whether the device is enabled or disabled.
43
43
44
-
using System;
45
-
using System.Management;
46
-
using ROOT.MICROSOFTPOINTOFSERVICE;
47
-
48
-
namespace Management
49
-
{
50
-
public class Test
51
-
{
52
-
public Test()
53
-
{
54
-
ManagementScope scope = new ManagementScope("root\\microsoftpointofservice");
0 commit comments