Microsoft MVP성태의 닷넷 이야기
IIS - 3. IIS 7.0 에서 소개되는 Microsoft.Web.Administration 네임스페이스 [링크 복사], [링크+제목 복사],
조회: 13973
글쓴 사람
정성태 (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)
296정성태5/27/200613162WWF 로 만든 Tetris
294정성태5/21/200613223Session State Uses a Reader-Writer Lock
293정성태5/21/200611881Microsoft Threat Analysis & Modeling v2.0 RC1
291정성태5/18/200613226Managed Stack Explorer
289정성태5/17/200613704Microsoft ASP.NET Providers - PDF 메뉴얼
288정성태5/17/200614055TFS Administration Tool 1.0 Released...with Shared Source!
287정성태5/17/200613133An Introduction to 64-bit Installers with Visual Studio 2005: Part 1
283정성태5/15/200613685Windows Workflow Foundation: Running Service Activated Workflows on Windows Vista and IIS7
284정성태5/15/200613896    답변글 Windows Workflow Foundation: Exposing Workflows as Services [1]
281정성태5/12/200612443Microsoft Compute Cluster Pack SDK
280정성태5/11/200616603C# 3.0 : One-Step Object Creation and Initialization
279정성태5/11/200614494Vista에서 제거되는 DHTML Editing Control
278정성태5/11/200612759LINQ CTP - May 2006
286정성태5/16/200612268    답변글 Using LINQ with ASP.NET (Part 1)
277정성태5/9/200612383Web Application Projects - 정식 릴리스
276정성태5/8/200612738SNK 파일 공유하기파일 다운로드1
275정성태5/8/200612465Building Security Awareness in .NET Assemblies
274정성태5/7/200612411QuickSYS파일 다운로드2
273정성태5/7/200612658Developing Firewalls for Windows 2000/XP파일 다운로드1
272정성태5/6/200614609Windows PowerShell [3]
292정성태5/19/200612749    답변글 Windows PowerShell - PowerShell Script to Create a WorkItem
271정성태5/6/200612985MSBee
282정성태5/15/200612833    답변글 MSBee will be on CodePlex
290정성태5/18/200613294    답변글 MSBuild Extras - Toolkit for .NET 1.1 "MSBee"
270정성태5/4/200613011ISO Recorder
269정성태5/4/200612984Visual Studio 2005 Team System Level 200 Course Material
... 31  32  33  34  35  [36]  37  38  39  40  41  42  43  44  45  ...