IVsCredential.SetProperty(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
Se s 与存储中的凭据相关的属性。 若要删除属性,必须从存储中删除令牌本身。 名称不能为 null 或为空,也不能为空白。 值不能为 null。 如果找不到基础凭据,则返回 false。 再次设置相同的名称将覆盖属性。 属性名称不区分大小写
public:
bool SetProperty(System::String ^ name, System::String ^ value);
public:
bool SetProperty(Platform::String ^ name, Platform::String ^ value);
bool SetProperty(std::wstring const & name, std::wstring const & value);
public bool SetProperty (string name, string value);
abstract member SetProperty : string * string -> bool
Public Function SetProperty (name As String, value As String) As Boolean
参数
- name
- String
名称。
- value
- String
值。
返回
true 如果已设置该属性,则为 false 。