MetaTable.CanInsert(IPrincipal) 方法

定義

會取得一個值,指示指定的使用者是否被允許執行插入操作。

public:
 virtual bool CanInsert(System::Security::Principal::IPrincipal ^ principal);
public virtual bool CanInsert(System.Security.Principal.IPrincipal principal);
abstract member CanInsert : System.Security.Principal.IPrincipal -> bool
override this.CanInsert : System.Security.Principal.IPrincipal -> bool
Public Overridable Function CanInsert (principal As IPrincipal) As Boolean

參數

principal
IPrincipal

使用者的安全情境。

傳回

true如果使用者被允許執行插入操作;否則,。 false

備註

主物件代表代表程式碼執行的使用者的安全情境,包括該使用者的身份及其所屬角色。

適用於