Click or drag to resize

ISandboxRulesAllowMember Method

Determines if member access should be allowed.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
bool AllowMember(
	Type type,
	MemberInfo member_info
)

Parameters

type  Type
Determine if access to this type's member should be allowed.
member_info  MemberInfo
Determine if this member can be accessed.

Return Value

Boolean
true: allow member access.
Remarks
AllowMember(Type, MemberInfo) is enforced during parsing.

Override this method to allow member access when appropriate.

This method must be idempotent.

Example
Default SandboxRules implementation.
override bool AllowMember(Type type, MemberInfo member_info)
{
    return false;
}
See Also