To find a SharePoint DLL by reflector

Source: Internet
Author: User
Tags reflector

Background introduction:

Since the test process needs to write some cases to simulate the operation of SharePoint, in the actual application process, there are some actions can not be written immediately, there are a series of ways to try to solve:

method to solve:

1. Search Google directly to see if there are any previous jobs, but sometimes you won't find

2. Use reflector to view the appropriate SharePoint DLLs to see what SharePoint's own actions look like

To list setting-"Validation settings example, first the page opens to the Validation Settings section, and then glue out the URL at this time to find the corresponding ASPX page, at this time we will see a call:

Vldsetng.aspx, then search for this file on the SharePoint machine and open it after finding the file:

<%@ Assembly name= "Microsoft.SharePoint.ApplicationPages, version=15.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "%> <%@ page language=" C # "dynamicmasterpagefile=" ~masterurl/default.master "Inherits=" Microsoft.SharePoint.ApplicationPages.ValidationSettingsPage "      %> <%@ Import namespace= "Microsoft.SharePoint.ApplicationPages"%> <%@ Register tagprefix= "SharePoint" namespace= " Microsoft.SharePoint.WebControls "assembly=" Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%> <%@ Register tagprefix=" Utilities "namespace=" Microsoft.SharePoint.Utilities "assembly=" Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "%> <%@ Import namespace=" Microsoft.SharePoint "%> <%@ Assembly name=" Microsoft.Web.CommandUI, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%>

In the head you will see such a statement, look for the Inherits node, according to him to find the appropriate namespace, according to the namespace to find out which dll he belongs to, such as this find him in the Microsoft.SharePoint.ApplicationPages.dll

Then open this DLL with reflector, search directly for Microsoft.SharePoint.ApplicationPages.ValidationSettingsPage, usually in the name of *onload* or btnsave** Setting can get the answer you want in this way.

To find a SharePoint DLL by reflector

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.