ModuleServiceMethodAttribute.PassThrough Property

Definition

Gets or sets a value indicating whether a module service method is directly callable by the client.

public:
 property bool PassThrough { bool get(); void set(bool value); };
public bool PassThrough { get; set; }
member this.PassThrough : bool with get, set
Public Property PassThrough As Boolean

Property Value

true if the module service method is directly callable by the client; otherwise, false.

Examples

The following example implements a method to return the value of the PassThrough property for a method within a module.

bool CheckPassThru(string methodName, Type svcType) {

    MyModSrvc moduleService = (MyModSrvc)Activator.CreateInstance(svcType);

    ModuleServiceMethodAttribute attribute;

    MethodInfo method = moduleService.GetMethod(methodName, out attribute);

    return !attribute.PassThrough;
} 

Applies to