What is .NET framework
|
|
.NET framework is a computing platform for building, deploying and running applications in highly distributed environment.
.NET framework majorly includes
- Common Language Runtime (CLR)
- Base Class Library (BCL)
- Application interfaces (E.g ASP.NET, Windows Forms)
|
|
|
what are the application types in .net
|
|
Below are the various types of applications which can be developed in .NET.
- Console Applications
- Windows Applications (Winforms or WPF)
- Windows Services
- Web Applications (ASP.NET)
- Service Application
- Mobile/Smart Device Applications
- Setup and Deployment Applications
- Silverlight Applications
|
|
|
what is the Common Language Runtime (CLR)
|
|
Common Language Runtime (CLR) is the core component of .NET framework and is responsible for managing the code execution time. It's foundation of .NET framework that enables programs to be portable, supporting mixed language programming and provides secure execution. CLR as the name specifies provides a common runtime environment for different languages.
How it works: code which is written in respective languages ( VC++ , C#, VB.NET or J#) will generates MSIL(Microsoft Intermediate Language) code by it's compilers. Then CLR will convert MSIL code to executable code when the program runs.
The core functions of CLR are - Loading and execution of applications
- Automatic memory management
- Type safety
- compilation of IL code to native code
- Common Type System
- Exception handling
- Thread management
|
|
|
What is managed and unmanaged code in .NET
|
|
Manged Code - code which is executed under Common Language Runtime (CLR). Due to this, the code has many benefits like memory management, support of version control, type safety and security. The code which targets CLR and written in .NET framework is a managed code. E.g: C#,VB.NET
Unmanaged code : code which is not executed under .NET runtime (CLR). CLR is does not have control over execution of code.memory management, security and type safety should be taken care by developer. E.g: VB6, C,C++.
managed code typically compiled to Intermediate Language(IL) code where as unmanged code directly compiles to native code.
|
|
|
|
What are the major services provided by Common Language Runtime(CLR)
|
|
CLR is a common runtime environment for .NET languages. The core services of CLR are- Execution management for .NET programs
- Code Access Security
- Type Safety
- Memory management(Garbage collection)
- Handling Exceptions
- Interoperability with other applications
- Side-by-side execution - multiple versions of same application
- Just In Time compilation (Compiling IL code to machine code)
|
|
|
|
|
|
What is Microsoft Intermediate Language (MSIL)
|
|
When we compile the .NET programming language code, the output of compiler is not executable code instead it generates special type of Pseudocode called as Microsoft Intermediate Language(MSIL). It can also referred as Intermediate Language (IL) or Common Intermediate Language (CIL).
When we run the program, Common Language Runtime(CLR) will translate MSIL code to executable code. CLR will covert MSIL code from any of .NET language.
|
|
|
|
|
|
What is content database in SharePoint
|
|
A content database is a database file that stores content for one or more site collections for SharePoint web application. The content can be pages,files,documents,images and much more. So if the Site Collection has more number of SharePoint sites, the content database size grows rapidly.
One SharePoint web application can have more than one content database mapped to it and the max limit is 300 ContentDB's per Web Application. If you want to add more content databases to web application, Go to Central Admin -> Application Management -> Manage Content Databases -> select web application -> Add a content database.
Maximum Content database size is 200 GB in general usage scenarios.
|
|
|
What is Service Applications in SharePoint
|
|
Service Applications(SA) are software services which run in a SharePoint farm. These are very useful to share information, resources and capabilities across multiple sites/applications/servers in the same share point farm or even across farms.
Service applications are introduced from SharePoint 2010. Advantage with the Service Applications are salable and extensible.
Sample Service Applications: Access Services User Profile Service User Profile Synchronization Service SharePoint Server Search ...
Location of services : Central Administration -> System Settings -> Manage services on server
|
|
|
What is site template in sharepoint
|
|
Site Template is a pre-defined set of configuration, layout, and content files that define a site model for an SharePoint application. In built SharePoint has shipped with the set of site templates or we can create our own site templates.
Each site collection site is associated with a site template. While creating a new site collection for an web application from Central Admin, we need to select a site template from Template Selection section.
Once we crate site collection, share point stores some of the files in the file system of front-end webs servers and some content in back-end databases. When we request for a page from browser, SharePoint engine will decide from where it needs to pick the data either file system or content database.
Sample Site Templates: Collaboration - Team Site Collaboration - Blog Collaboration - Coommunity Site Enterprise - Document Center Publishing - Publishing Portal Publishing - Enterprise Wiki
|
|
|
What are the various default permission levels in SharePoint site
|
|
SharePoint site has different permission levels for the SharePoint Groups. When you create SharePoint site, you can observe the below permissions as default.
Full Control - Has full control. Design - Can view, add, update, delete, approve, and customize. Edit - Can add, edit and delete lists; can view, add, update and delete list items and documents. Contribute - Can view, add, update, and delete list items and documents. Read - Can view pages and list items and download documents. Limited Access - Can view specific lists, document libraries, list items, folders, or documents when given permissions. Approve - Can edit and approve pages, list items, and documents. Manage Hierarchy - Can create sites and edit pages, list items, and documents. Restricted Read - Can view pages and documents, but cannot view historical versions or user permissions. Restricted Interfaces for Translation - Can open lists and folders, and use remote interfaces.
We can create our own set of permissions also. In order to create new permission, go to site settings -> Users and Permissions -> Site permissions -> Permission Levels(Display list of permissions avalible on site) -> Add a Permission Level
|
|
|
What is custom list template in sharepoint site
|
|
Inbuilt SharePoint provides some predefined list of templates like Announcements,Calendar,Picture Library,Links...etc. If none of templates are meeting you requirement, you can create your own custom list instance and define columns/views for the list. This list is called Custom List.
In-order to create new custom list, Go to Site Contents -> Add an App -> Select Custom List -> Provide Name for Your Custom list.After creating list, add columns and views to it. Create Column/View for List: Open created Custom List -> List Settings -> Create Column/View
Note: By default every Custom List will have 5 columns (Title, Modified, Created, Created By and Modified By).
|
|
|
What are the default columns added to SharePoint Custom List template
|
|
When we create a Custom List in SharePoint site, By default 5 columns are added to custom list which are - Title (Single line of text) - Mandatory field that defines a title for each list item.
- Created (Date and Time) - When the user has created the current item.
- Modified (Date and Time) - When the last user has modified the current item.
- Created By (Person or Group) - User who created the current item.
- Modified By (Person or Group) - User who last modified the current item.
We can modify the column properties by clicking on Column Name from List Settings.
|
|
|
What are the view formats for SharePoint Custom List template
|
|
When we create a Custom List in SharePoint site, we need to map the list to View. By default when we create List, it will be mapped to "All Items" standard view. But we can change the view for the list.
Each view is created from View Type and below are the available view types - Standard View - View data on a Web page. You can choose from a list of display styles.
- Calendar View - View data as a daily, weekly, or monthly calendar.
- Datasheet View - View data in an editable spreadsheet format that is convenient for bulk editing and quick customization.
- Gantt View - View list items in a Gantt chart to see a graphical representation of how a team's tasks relate over time.
- Custom View in SharePoint Designer - Start SharePoint Designer to create a new view for this list with capabilities such as conditional formatting.
In order to see the available view types, Go to Custom List Settings -> Create View -> View Type.
|
|
|
|