ok thanks I was doing a location.CreateAppWithName..Can u explain the difference between creating an app through hub and through normal location and also in general what is the difference between doing things through hub and normal location
The Hub class (and IHub interface) are the .Net wrappers for the class "Global" in in the engine API: Global class ‒ Qlik Sense Developers and it's primary purpose is to provide methods for performing operations that are not associated with the contents of apps. This includes includes among other thing the creation and deletion of apps, but also operations for providing environment information such as product version.
On the other hand, the primary role of the Location class of the .Net SDK is to provide operation for setting up a connection to a Qlik Sense instance. After configuring the connection details of the Location, LocationExtensions.Hub Method provides the gateway to the Hub class. In addition, the Location class provides a number of convenience methods for accessing apps directly, since this is quite often where you in the end want to go. But those methods are just sugar for going through the Hub method (and will actually call it under the hood).
thank u so much that was great insight .. one more question are there any methods or classes in the .net sdk for interacting with QMC for generating or managing security rules or other elements of QMC.
No, the .Net SDK is mostly a wrapper for the Engine API. That part of the product is controlled by the repository, and you'll have to go through it's REST API. You'll find the documentation for that API here: