ApplicationFactoryFindByGuid Method |
Namespace: AskiaPortalCmn
Find the application using his GUID.
var context = ContextFactory.CreateByUserGuid(Guid.Parse("20BE5F84-F006-49A0-9674-4B16A090AF2D")); var contextValidation = context.Validate(); if (!contextValidation.Success) { throw contextValidation.Exception; } var appGuid = Guid.Parse("6F8989A1-5C21-46F1-9A43-556E58137186"); var app = ApplicationFactory.FindByGuid(context, appGuid); if (app != null) { Console.WriteLine("Application GUID={0} was found: {1}", app.Guid, app.Name); } else { Console.WriteLine("The specified application doesn't exist, or the current user within the context could not access it"); }