API Reference > imodeljs-common > RpcInterface > RpcOperation > RpcOperation.setPolicy RpcOperation.setPolicy Function Decorator for setting the policy for an RPC operation function. setPolicy(policy: RpcOperationPolicy | Partial<RpcOperationPolicy>): (target: T, propertyKey: string, descriptor: PropertyDescriptor) => void Parameter Type Description policy RpcOperationPolicy | Partial<RpcOperationPolicy> Returns - (target: T, propertyKey: string, descriptor: PropertyDescriptor) => void Defined in core/common/src/rpc/core/RpcOperation.ts Line 127 Last Updated: 11 June, 2024