ContextUtil::ApplicationInstanceId Property
.NET Framework (current version)
Gets a GUID for the current application instance.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
| Exception | Condition |
|---|---|
| COMException | There is no COM+ context available. |
| PlatformNotSupportedException | The platform is not Windows XP or later. |
The following code example gets the value of a ApplicationInstanceId property.
[Synchronization(SynchronizationOption::Required)] public ref class ContextUtil_ApplicationInstanceId: public ServicedComponent { public: void Example() { // Display the ApplicationInstanceId associated with the current COM+ // context. Console::WriteLine( "Application Instance ID: {0}", ContextUtil::ApplicationInstanceId ); } };
.NET Framework
Available since 1.1
Available since 1.1
Show: