PostSharpAPI ReferencePost­Sharp.​ExtensibilityRequire­Post­Sharp­AttributeRequire­Post­Sharp­Attribute
Open sandboxFocus

RequirePostSharpAttribute Constructor

RequirePostSharpAttribute(String, String)

Initializes a new RequirePostSharpAttribute and specifies the required plug-in name and task name.

Declaration
public RequirePostSharpAttribute(string plugIn, string task)
Parameters
Type Name Description
System.String plugIn

Name of the required plug-in (file name without extension).

System.String task

Name of the required task (should be defined in plugIn).

RequirePostSharpAttribute(String)

Initializes a new RequirePostSharpAttribute and specifies the required plug-in name. All implicit (auto-included) tasks of that plug-in will be added to the project.

Declaration
public RequirePostSharpAttribute(string plugIn)
Parameters
Type Name Description
System.String plugIn

Name of the required plug-in (file name without extension).

RequirePostSharpAttribute(Type)

Initializes a new RequirePostSharpAttribute and specifies the required IService type.

Declaration
public RequirePostSharpAttribute(Type serviceType)
Parameters
Type Name Description
System.Type serviceType

A type derived from IService.