internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop) { if (ctx != null) { return(ctx.AddPerContextDynamicProperty(prop)); } return(Context.AddGlobalDynamicProperty(prop)); }
internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop) { if (ctx != null) { return ctx.AddPerContextDynamicProperty(prop); } return AddGlobalDynamicProperty(prop); }
/* * Support for dynamic sinks at context level * */ internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop) { // Check if we have a property by this name if (ctx != null) { return(ctx.AddPerContextDynamicProperty(prop)); } else { // We have to add a sink that should fire for all contexts return(AddGlobalDynamicProperty(prop)); } }
[System.Security.SecurityCritical] // auto-generated internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop) { // Check if we have a property by this name if (ctx != null) { return ctx.AddPerContextDynamicProperty(prop); } else { // We have to add a sink that should fire for all contexts return AddGlobalDynamicProperty(prop); } }