Class UserScript
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class UserScript : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<UserScript>, IDisposable
- Inheritance
-
UserScript
- Implements
- Inherited Members
Constructors
UserScript(UserScriptOwnedHandle)
public UserScript(UserScriptOwnedHandle handle)
Parameters
handleUserScriptOwnedHandle
Properties
Handle
public UserScriptOwnedHandle Handle { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(UserScript?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(UserScript? other)
Parameters
otherUserScriptAn object to compare with this object.
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
New(string, UserContentInjectedFrames, UserScriptInjectionTime, string[]?, string[]?)
[Version("2.6")]
public static UserScript New(string source, UserContentInjectedFrames injectedFrames, UserScriptInjectionTime injectionTime, string[]? allowList, string[]? blockList)
Parameters
sourcestringinjectedFramesUserContentInjectedFramesinjectionTimeUserScriptInjectionTimeallowListstring[]blockListstring[]
Returns
NewForWorld(string, UserContentInjectedFrames, UserScriptInjectionTime, string, string[]?, string[]?)
[Version("2.22")]
public static UserScript NewForWorld(string source, UserContentInjectedFrames injectedFrames, UserScriptInjectionTime injectionTime, string worldName, string[]? allowList, string[]? blockList)
Parameters
sourcestringinjectedFramesUserContentInjectedFramesinjectionTimeUserScriptInjectionTimeworldNamestringallowListstring[]blockListstring[]
Returns
Ref()
[Version("2.6")]
public UserScript Ref()
Returns
Unref()
[Version("2.6")]
public void Unref()