ModuleServiceMethodAttribute.PassThrough Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
}