ContentFormatterArgument Constructor ()

Default constructor for the ContentFormatterArgument class.

命名空间: Microsoft.SqlServer.Management.Nmo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

语法

声明
Public Sub New
public ContentFormatterArgument ()
public:
ContentFormatterArgument ()
public ContentFormatterArgument ()
public function ContentFormatterArgument ()

备注

If you use the default constructor, you must immediately set the Name property and then set the Parent property. You can then set the Value property.

示例

The following examples show how to use this default constructor:

// Define a formatter argument and set properties.
ContentFormatterArgument contentFormatterArgument1 = 
    new ContentFormatterArgument();
contentFormatterArgument1.Name = "XsltBaseDirectoryPath";
contentFormatterArgument1.Parent = contentFormatter;
contentFormatterArgument1.Value = @"C:\NS\Default\XSLFiles";
' Define a formatter argument and set properties.
Dim contentFormatterArgument1 As ContentFormatterArgument = _
    New ContentFormatterArgument()
contentFormatterArgument1.Name = "XsltBaseDirectoryPath"
contentFormatterArgument1.Parent = contentFormatter
contentFormatterArgument1.Value = "C:\NS\Default\XSLFiles"

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

ContentFormatterArgument Class
ContentFormatterArgument Members
Microsoft.SqlServer.Management.Nmo Namespace

其他资源

配置内容格式化程序
Argument Element for ContentFormatter/Arguments (ADF)