1. 프로젝트 속성 > 애플리케이션 > 리소스에서 매니페스트 추가

2. app.manifest 설정 추가

  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <!-- UAC 매니페스트 옵션 -->
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>

 

private void GridView_MouseDown(object sender, MouseEventArgs e)
{
	GridHitInfo gridHI = (sender as GridView).CalcHitInfo(e.Location);
	if (gridHI != null && gridHI.InRowCell)
	{
		if ((sender as GridView).IsRowSelected(gridHI.RowHandle))
		{
			(sender as GridView).UnselectRow(gridHI.RowHandle);
		}
		else
		{
			(sender as GridView).SelectRow(gridHI.RowHandle);
		}
		DXMouseEventArgs.GetMouseArgs(e).Handled = true;
	}
}

 

using System;
using System.Diagnostics;
using System.Security.Principal;
using System.Windows.Forms;

namespace HelloWorld
{
    static class Program
    {
        /// <summary>
        /// 해당 응용 프로그램의 주 진입점입니다.
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (IsAdministrator() == false)
            {
                try
                {
                    ProcessStartInfo processInfo = new ProcessStartInfo();
                    processInfo.UseShellExecute = true;
                    processInfo.FileName = Application.ExecutablePath;
                    processInfo.WorkingDirectory = Environment.CurrentDirectory;
                    processInfo.Verb = "runas";
                    Process.Start(processInfo);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }

                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MonitoringForm());
        }

        /// <summary>
        /// 관리자모드 실행 확인
        /// </summary>
        /// <returns></returns>
        public static bool IsAdministrator()
        {
            WindowsIdentity identity = WindowsIdentity.GetCurrent();

            if (null != identity)
            {
                WindowsPrincipal principal = new WindowsPrincipal(identity);
                return principal.IsInRole(WindowsBuiltInRole.Administrator);
            }

            return false;
        }
    }
}


기존의 Class에 추가로 함수를 추가 하는경우 사용한다.

확장 메소드의 Class는 Static으로 정의 되어야 하며 첫번째 파마메터에 this 기존클래스명 이 들어가야 한다.


public static class StringExtention

{

    public static int ToInt(this string str)

    {

        int result = 0;

        try

        {

            result = int.Parse(str);

        }

        catch

        {

        }

        return result;

    }

}



확장 메소드 등록 시 아래처럼 상용이 가능하다.


Android - 이미지 폴더의 하위 폴더 가져오기




String path2 = Environment.getExternalStorageDirectory().toString()+"/Pictures/";
Log.d("H_Log", "Path: " + path2);
File f = new File(path2);
File file[] = f.listFiles();
Log.d("H_Log", "Size: "+ file.length);

for (int i=0; i < file.length; i++)
{
    Log.d("H_Log", "FileName:" + file[i].getName());
}


'Programming > Android' 카테고리의 다른 글

[Android] 화면 위치 고정하기(화면 회전 방지)  (0) 2012.01.10

이벤트 로그 서비스가 시작이 안되고, 파일을 찾을 수 없다고 나올때

레지스트리 값을 수정하자.


"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog"

경로의 "Parameters" 폴더를 삭제!

 

 

 

북한산성 입구 >> 법용사 >> 용학사 >> 중성문 >> 용암문 >>
대피소 >> 위문 >> 백운대
 
왕복 약 6시간 코스.
 
 
실제로는 왕복 약 4시간 반쯤 걸린듯.

'취미 및 기타등등 > 등산!' 카테고리의 다른 글

수락산 등산코스 (왕복 4시간)  (0) 2011.09.30
도봉산 등산코스(왕복 4시간)  (0) 2011.06.09

SPListItem 의 Update 속성은 아래 4가지가 있다.

SystemUpdate() 수정자와 수정일자를 업데이트 하지않는고, 신규 버전을 생성 하지 않는다.
SystemUpdate(Boolean) 수정자와 수정일자를 업데이트 하지않고, Boolean이 "true"일 경우 신규 버전을 생성 "false"일 경우 신규 버전을 생성하지 않는다.
Update() 수정자와 수정일자가 업데이트 되고 신규 버전이 생성 된다.
UpdateOverwriteVersion() 수정자와 수정일자가 업데이트 되고 신규 버전은 생성되지 않는다.

 

Event Receiver의 ItemUpdated 메소드에서 SPListItem 을 업데이트 하는 경우 아래의 오류가 발생 되는 경우가 있다.

 

파일이 ******의 공유 사용을 위해 잠겼습니다. Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)

 

이는 owa 또는 다른곳에서 해당 문서를 사용하는 경우 발생 되며, 이때는 SystemUpdate() 또는 SystemUpdate(false)를 사용하면 해결 된다.

 

 

 

 

 

 

 

 

 

 

 

Microsoft.Office.Server.UserProfiles.LMTRepopulationJob Exception 발생 시

AppFabricCachingService에서 발생 되는 문제로 해당 서비스를 초기화 해주자!

 

Sharepoint Management Shell 에서 아래 명령 실행.

 

Restart-Service AppFabricCachingService

1. Show Off Your Style with SharePoint Theming

Theming in SharePoint 2013 makes it easier to drastically change the look of your site and make it your own. That said, the new look of SharePoint sites is great, so why would you want to change it?

http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1043

2. Certain Microsoft SharePoint Server 2013 installation scenarios are not supported

This article describes Microsoft SharePoint Server 2013 installation scenarios that are not supported.

http://support.microsoft.com/kb/2764086

3. Global Solutions for SharePoint 2013

This model provides architectural guidance for geographically distributed deployments of SharePoint 2013.

http://www.microsoft.com/en-us/download/details.aspx?id=34975

4. Backup and restore: SharePoint Server 2013

This model illustrates various ways that you can back up and restore a SharePoint environment.

http://www.microsoft.com/en-us/download/details.aspx?id=30365

5. Databases that support SharePoint 2013 Preview

This model illustrates the databases that that support SharePoint 2013 Preview.

http://www.microsoft.com/en-us/download/details.aspx?id=30363

6. Design Sample: Corporate Portal with Host-named Sites for SharePoint Server 2013

This design sample illustrates the use of host-named site collections with all sites deployed in a single web application on the farm. This method is highly scalable and is flexible in managing URLs.

http://www.microsoft.com/en-us/download/details.aspx?id=30362

7. Design Sample: Corporate Portal with Path-based Sites for SharePoint Server 2013

This design sample illustrates the use of path-based site collections with sites organized into dedicated web applications and a single top-level site collection per web application.

http://www.microsoft.com/en-us/download/details.aspx?id=30378

8. Design Sample: Extranet with Dedicated Zones for Authentication for SharePoint 2013

This design sample illustrates many top-level project sites with vanity URLs by using host-named sites for each project site (instead of organizing project sites underneath a top-level site collection).

http://www.microsoft.com/en-us/download/details.aspx?id=30368

9. Downloadable eBook: Deployment guide for SharePoint 2013

Download this free ebook to learn how to install and configure SharePoint Server and SharePoint Foundation.

http://www.microsoft.com/en-us/download/details.aspx?id=30384

10. Downloadable eBook: Explore SharePoint 2013

Download this free eBook to learn more about what's new in SharePoint 2013.

http://www.microsoft.com/en-us/download/details.aspx?id=30368

11. Enterprise search architectures for SharePoint Server 2013

This design sample shows the search architecture for a variety of sizes of server farms.

http://www.microsoft.com/en-us/download/details.aspx?id=30383

12. Incoming email planning worksheet

This worksheet helps you record information to help you plan for incoming email in a SharePoint deployment.

http://www.microsoft.com/en-us/download/details.aspx?id=34805

13. Microsoft SharePoint Products and Technologies Protocol Documentation

The Microsoft SharePoint Products and Technologies protocol documentation provides technical specifications for Microsoft proprietary protocols that are implemented and used in SharePoint Products and Technologies.

http://www.microsoft.com/en-us/download/details.aspx?id=25255

14. Multi-farm architectures with SharePoint Server 2013

This model provides architectural guidance for multi-farm deployments of SharePoint Server 2013.

http://www.microsoft.com/en-us/download/details.aspx?id=34973

15. Search architectures for SharePoint Server 2013

This design sample shows the search architecture for a medium size server farm.

http://www.microsoft.com/en-us/download/details.aspx?id=30374

16. Services in SharePoint Server 2013

This illustration provides information about services that are available in SharePoint Server 2013.

http://www.microsoft.com/en-us/download/details.aspx?id=30402

17. SharePoint 2013 Upgrade Process

This model explains the process that you use when you upgrade from SharePoint Foundation 2010 or SharePoint Server 2010 to SharePoint Foundation 2013 or SharePoint Server 2013.

http://www.microsoft.com/en-us/download/details.aspx?id=30371

18. SharePoint 2013: App Overview for IT Pro

The app model in SharePoint 2013 enables SharePoint environments to add functionality quickly and securely.

http://www.microsoft.com/en-us/download/details.aspx?id=30373

19. SharePoint 2013: How to Test Upgrade

This model explains how to create a test environment to use when you upgrade from SharePoint Server 2010 or SharePoint Foundation 2010 to SharePoint 2013 Products

http://www.microsoft.com/en-us/download/details.aspx?id=30366

20. Test Lab Guide: Configure SharePoint Server 2010 in a Three-Tier Farm

This paper contains step-by-step instructions for creating a test lab containing a three-tier SharePoint farm.

http://www.microsoft.com/en-us/download/details.aspx?id=29420

21.Topologies for SharePoint 2013

The versatility of SharePoint 2013 provides opportunities to develop a topology that satisfies your business goals.

http://www.microsoft.com/en-us/download/details.aspx?id=30377

22.User profile properties and profile synchronization planning worksheets for SharePoint Server 2013

The following planning worksheets can assist you when planning user profiles or planning and configuring profile synchronization.

http://www.microsoft.com/en-us/download/details.aspx?id=35404

23.White Paper: Office 2013--Access Services Setup for an On-Premises Installation

This white paper provides instructions that will help you configure SQL Server 2012 for Access Services in SharePoint Server 2013. It includes instructions for an on-premises installation and configuration of Access Services on a server that is running SharePoint Server 2013.

http://www.microsoft.com/en-us/download/details.aspx?id=30445 

 

 

출처 : http://msmvps.com/blogs/sundar_narasiman/default.aspx

 

+ Recent posts