#.DynamicsPluginServices.GetTarget C# (CSharp) Method

GetTarget() public method

public GetTarget ( ) : T
return T
        public T GetTarget<T>()
            where T : Entity
        {
            if (Context.InputParameters != null 
                && Context.InputParameters.ContainsKey("Target") 
                && Context.InputParameters["Target"] is Entity)
            {
                return Context.InputParameters["Target"] as T;
            }

            return null;
        }