IIdentity.Name Property
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.
Gets the name of the current user.
public:
property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
public string? Name { get; }
member this.Name : string
Public ReadOnly Property Name As String
Property Value
The name of the user on whose behalf the code is running.
Remarks
The user name is passed to the common language runtime by the operating system or other authentication provider (such as ASP.NET).
Name is typically set to an empty string ("") for an unauthenticated entity, but can take other values.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.