UserId.Implicit 操作员

定义

重载

Implicit(StandardUser to UserId)

在标准用户和 UserId 实例之间实现隐式转换。

Implicit(String to UserId)

在表示主 SMTP 地址的字符串与 UserId 实例之间实现隐式转换。

Implicit(StandardUser to UserId)

在标准用户和 UserId 实例之间实现隐式转换。

public:
 static operator Microsoft::Exchange::WebServices::Data::UserId ^(Microsoft::Exchange::WebServices::Data::StandardUser standardUser);
public static implicit operator Microsoft.Exchange.WebServices.Data.UserId (Microsoft.Exchange.WebServices.Data.StandardUser standardUser);

参数

standardUser
StandardUser

用于初始化用户 ID 的标准用户。

返回

使用指定的标准用户值初始化的 UserId 实例。

适用于

Implicit(String to UserId)

在表示主 SMTP 地址的字符串与 UserId 实例之间实现隐式转换。

public:
 static operator Microsoft::Exchange::WebServices::Data::UserId ^(System::String ^ primarySmtpAddress);
public static implicit operator Microsoft.Exchange.WebServices.Data.UserId (string primarySmtpAddress);
Public Shared Widening Operator CType (primarySmtpAddress As String) As UserId

参数

primarySmtpAddress
String

用户的电子邮件地址。

返回

使用指定的主 SMTP 地址初始化的 UserId 实例。

适用于