RelationshipQuery.ThisRole 属性

定义

获取或设置源对象在关系中扮演的角色。Gets or sets the role of the source object in the relationship.

public:
 property System::String ^ ThisRole { System::String ^ get(); void set(System::String ^ value); };
public string ThisRole { get; set; }
member this.ThisRole : string with get, set
Public Property ThisRole As String

属性值

String

返回一个 String 值,该值包含此对象的角色。Returns a String value containing the role of this object.

注解

设置此属性值将覆盖对象中存储的任何先前值。Setting this property value overrides any previous value stored in the object. 重新生成查询字符串以反映新的角色。The query string is rebuilt to reflect the new role.

属性值Property Value

一个字符串,其中包含此对象的角色。A string containing the role of this object.

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅 从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

适用于