class Identity
Abstraction for identity.
Summary
Members | Descriptions |
---|---|
public Identity() | Default Identity constructor used when a user email address is not known. |
public Identity(const Identity& other) | Identity copy constructor. |
public explicit Identity(const std::string& email) | Identity constructor used when a user email address is known. |
public explicit Identity(const std::string& email, const std::string& name) | Identity constructor used when a user email address and user name is known. |
public const std::string& GetEmail() const | Get the email. |
public const std::string& GetName() const | Get the user's friendly name. used for text marking. |
Members
Identity function
Default Identity constructor used when a user email address is not known.
Identity function
Identity copy constructor.
Parameters:
- Identity: used to create the copy.
Identity function
Identity constructor used when a user email address is known.
Parameters:
- email: must be valid email address.
Identity function
Identity constructor used when a user email address and user name is known.
Parameters:
email: must be valid email address.
name: user name.
GetEmail function
Get the email.
Returns: The email.
GetName function
Get the user's friendly name. used for text marking.
Returns: The friendly name.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho