Microsoft MVP성태의 닷넷 이야기
IIS - 3. IIS 7.0 에서 소개되는 Microsoft.Web.Administration 네임스페이스 [링크 복사], [링크+제목 복사],
조회: 10149
글쓴 사람
정성태 (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)
160정성태4/13/20069425MS 인증서버 : 인증서 유효 기간 기본값 변경
157정성태4/13/20069050Converting a managed PDB into a XML file
158정성태4/13/20068705    답변글 [추가]: A SymWriter sample is coming...
156정성태4/13/20069504Method Call Interception (MCI) in C++
155정성태4/13/20068906Web Project Conversion Wizard
154정성태12/21/20059640Interprocess Communication Using the Running Object Table (ROT)파일 다운로드1
153정성태4/13/20069129Assembly loading failure is expensive [1]
152정성태4/13/20069714ASCX 컨트롤을 커스텀 컨트롤로 사용하는 방법.
151정성태4/13/20068538TechNet 세미나 목록
150정성태4/13/20068703SCDL Tool [2]
149정성태4/13/20068790Disk (based) Output Cache
147정성태4/13/20068737CLR Profiler for the .NET Framework 2.0
146정성태4/13/20069715Scriptomatic Version 2.0 by the Microsoft Scripting Guys
145정성태4/13/20069151Windows Server 2003 R2 [2]
144정성태4/13/20069549WTL(Windows Template Library) 7.5
143정성태4/13/20069791.NET 1.1 에서 WebService Client 의 KeepAlive = false; 설정
142정성태4/13/20068963Virtual Server 2005 R2 (x86, x64) EE 180-day Evaluation [2]
141정성태4/13/20069646.NET 표준개발 가이드와 Microsoft.Framework 공개
140정성태4/13/20068167PAINT.NET
139정성태11/30/2005923212월 세미나 행사
137정성태11/17/20058680WSE 3.0 정식 버전
162정성태4/13/20069349    답변글 [추가]: Web Service Security Guide
136정성태11/17/20058984Creating an Outlook My.Blogs Managed Code Add-in
138정성태11/24/20058434    답변글 Ceating an Outlook Business Contact Assistant Add-in with Visual Studio Tools for Office
135정성태11/16/20058728What's port 445 used for in Windows 2000/XP?파일 다운로드1
134정성태11/15/20058716Microsoft SQL Server Management Studio Express - Community Technical Preview (CTP) November 2005 [1]
... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...