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