Microsoft MVP성태의 닷넷 이야기
IIS - 3. IIS 7.0 에서 소개되는 Microsoft.Web.Administration 네임스페이스 [링크 복사], [링크+제목 복사],
조회: 13121
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일

Some examples of scripting of IIS using ADSI, WMI from VB and C# including the new Microsoft.Web.Administration namespace
; http://blog.crowe.co.nz/archive/2006/07/04/663.aspx

지난 기사에서도 한번 소개해 드렸었죠.

IIS 7.0 에서 소개되는 새로운 기능들
; https://www.sysnet.pe.kr/Default.aspx?mode=2&sub=1&pageno=0&detail=1&wid=251&wtype=12

이젠 IIS ADSI Provider / IIS WMI Provider 를 만질 일이 많이 줄어들지도 모르겠습니다. ^^
코드 예제가 같이 나와 있으니, 한번 보십시오.
상당히 직관적인 프로그래밍 인터페이스가 가능해졌습니다.


[내용 인용]
C# -Using Microsoft.Web.Administration ( II7 Only )
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Web.Administration;

namespace Console_EnumSites
{
    class Program
    {
        static void Main(string[] args)
        {
            ServerManager iisManager = new ServerManager();

            Console.WriteLine("Display IIS Sites in IIS 7");
            Console.WriteLine("".PadLeft(40,'-'));
            foreach(Site site in iisManager.Sites)
            {
                Console.WriteLine("{0} {1}", site.Id.ToString().PadRight(12), site.Name);                
            }
            Console.Read();
        }
    }
}


첨부한 파일은 해당 토픽을 MHTML 파일로 다운로드 받은 것입니다.






[최초 등록일: ]
[최종 수정일: 7/3/2006]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  [38]  39  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
239정성태4/18/200611599Display a Web Page in a Plain C Win32 Application
238정성태4/17/200611529ASP.NET 2.0 의 Provider 관련 쪽 소스 공개
237정성태4/17/200611212Microsoft Application Verifier
236정성태4/17/200612464IIS6 - IE static resource caching problem
235정성태4/13/200611131"Atlas" Control Toolkit for April CTP Released
234정성태4/13/200611483Access Visual Studio 2005 Team System From Macintosh and UNIX Systems, and from within the Eclipse IDE
233정성태4/13/200611164More Workflow Videos
232정성태4/13/200612144Microsoft Visual C++ 2005 Redistributable Package
231정성태4/13/200611667Windows Presentation Foundation Hands-On-Labs - February 2006 CTP
230정성태4/13/200611512Microsoft Management Model Designer
229정성태4/13/200612507Discovery Wizard for SharePoint
228정성태4/13/200612040TeamPlain Web Access for Team System
227정성태4/13/200611871Scrum for Team System Released
226정성태4/13/200611776Visual Studio Team Foundation Server MSSCCI Provider Version 1.0
224정성태4/13/200611345VC++ - GroupLab Component Library
223정성태4/13/200610473MSBuild Community Tasks Project releases new version
225정성태4/13/20069895    답변글 Visual Studio 2005 Web Application Projects (RC1)
222정성태4/13/200610938Visual Studio 2005 Security Features and Tools
220정성태6/8/200610825Shared Source Common Language Infrastructure 2.0 Release [1]
219정성태8/4/200610663Simple List Extensions Specification
218정성태4/13/2006112873rd party library - EZShellExtensions.Net 1.0 [1]
217정성태4/13/200611055Bug Details: GC fails to load in server mode if config file contains none ASCII characters
215정성태4/13/200611207http://www.400plusdifferences.com/
214정성태4/13/20069691Team Foundation Server, Biztalk 2006
216정성태4/13/200611063    답변글 Team Foundation Server 시험판 공개 다운로드
213정성태4/13/200611144Introduction to the MSN Messenger Activity SDK
... 31  32  33  34  35  36  37  [38]  39  40  41  42  43  44  45  ...