Click or drag to resize

ScriptDomainSecurityCheckAssembly Method (String, Assembly, CodeSecurityEngine, CodeSecurityReport, Boolean, Byte)

Attempts to perform security validation on the assembly at the specified location. Failure to load the data will result in a fail result.

Namespace:  UMod.Scripting
Assembly:  UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool SecurityCheckAssembly(
	string fullpath,
	out Assembly validatedAssembly,
	out CodeSecurityEngine securityEngine,
	out CodeSecurityReport securityReport,
	bool throwOnError = false,
	byte[] securityHash = null
)

Parameters

fullpath
Type: SystemString
The fullpath to the managed assembly
validatedAssembly
Type: System.ReflectionAssembly
The security validated and laoded assembly
securityEngine
Type: CodeSecurityEngine
The security engine used to validate the code
securityReport
Type: CodeSecurityReport
The security report generated by the code security engine if code validate was run
throwOnError (Optional)
Type: SystemBoolean
Should the checker throw an exception on error
securityHash (Optional)
Type: SystemByte

[Missing <param name="securityHash"/> documentation for "M:UMod.Scripting.ScriptDomain.SecurityCheckAssembly(System.String,System.Reflection.Assembly@,Trivial.CodeSecurity.CodeSecurityEngine@,Trivial.CodeSecurity.CodeSecurityReport@,System.Boolean,System.Byte[])"]

Return Value

Type: Boolean
True if the assembly passed security checks or false if the assembly breaches security or another error occured
Exceptions
ExceptionCondition
SecurityExceptionThe code does not meet the security restrictions defined in the settings menu
See Also