SORU
8 EYLÜL 2011, PERŞEMBE


Nasıl PowerShell kod açıklama mı?

Nasıl PowerShell (1.0 veya 2.0) kod açıklama mı?

CEVAP
8 EYLÜL 2011, PERŞEMBE


PowerShell V1 tek # sonra metni bir açıklama yok.

# This is a comment in Powershell

V2 <# #> PowerShell yardım bloğu yorum için ve daha spesifik olarak kullanılabilir yorumlar.

#REQUIRES -Version 2.0

<#
.SYNOPSIS
    A brief description of the function or script. This keyword can be used
    only once in each topic.
.DESCRIPTION
    A detailed description of the function or script. This keyword can be
    used only once in each topic.
.NOTES
    File Name      : xxxx.ps1
    Author         : J.P. Blanc (jean-paul_blanc@silogix-fr.com)
    Prerequisite   : PowerShell V2 over Vista and upper.
    Copyright 2011 - Jean Paul Blanc/Silogix
.LINK
    Script posted over:
    http://silogix.fr
.EXAMPLE
    Example 1
.EXAMPLE
    Example 2
#>
Function blabla
{}

.SYNOPSIS .* hakkında daha fazla açıklama için about_Comment_Based_Help bkz.

Not: Bu işlev açıklamaları Get-Help Çalıştırın ve kod kendisi sonra {} içinde 9* *veya önceki veya anahtar önce konabilir.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Random Act of Kindness Video Contest

    Random Act o

    18 EYLÜL 2012
  • MndsgnVEVO

    MndsgnVEVO

    26 Kasım 2013
  • pjtoohot

    pjtoohot

    15 NİSAN 2008