DataProtectionUtilityExtensions.GetApplicationUniqueIdentifier Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a unique identifier for this application.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetApplicationUniqueIdentifier(IServiceProvider ^ services);
public static string GetApplicationUniqueIdentifier (this IServiceProvider services);
public static string? GetApplicationUniqueIdentifier (this IServiceProvider services);
static member GetApplicationUniqueIdentifier : IServiceProvider -> string
<Extension()>
Public Function GetApplicationUniqueIdentifier (services As IServiceProvider) As String
Parameters
- services
- IServiceProvider
The application-level IServiceProvider.
Returns
A unique application identifier, or null if services
is null
or cannot provide a unique application identifier.
Remarks
The returned identifier should be stable for repeated runs of this same application on this machine. Additionally, the identifier is only unique within the scope of a single machine, e.g., two different applications on two different machines may return the same value.
This identifier may contain security-sensitive information such as physical file paths, configuration settings, or other machine-specific information. Callers should take special care not to disclose this information to untrusted entities.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for