ContentFormatterArgumentCollection Class
Represents the collection of initialization arguments for a ContentFormatter object.
命名空间: Microsoft.SqlServer.Management.Nmo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
语法
声明
<DefaultMemberAttribute("Item")> _
Public Class ContentFormatterArgumentCollection
Inherits SimpleObjectCollectionBase
[DefaultMemberAttribute("Item")]
public class ContentFormatterArgumentCollection : SimpleObjectCollectionBase
[DefaultMemberAttribute(L"Item")]
public ref class ContentFormatterArgumentCollection : public SimpleObjectCollectionBase
/** @attribute DefaultMemberAttribute("Item") */
public class ContentFormatterArgumentCollection extends SimpleObjectCollectionBase
DefaultMemberAttribute("Item")
public class ContentFormatterArgumentCollection extends SimpleObjectCollectionBase
备注
Each content formatter can have initialization arguments. For information about the built-in XSLT content formatter's arguments, see 定义 XSLT 内容格式化程序.
The distributor passes initialization arguments to the content formatter's Initialize method.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.AbstractCollectionBase
Microsoft.SqlServer.Management.Smo.SmoCollectionBase
Microsoft.SqlServer.Management.Smo.SortedListCollectionBase
Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase
Microsoft.SqlServer.Management.Nmo.ContentFormatterArgumentCollection
示例
The following examples show how to define content formatter arguments and add them to a content formatter:
ContentFormatterArgument contentFormatterArgument1 =
new ContentFormatterArgument(
contentFormatter, "XsltBaseDirectoryPath");
contentFormatterArgument1.Value = @"C:\NS\Full\XSLFiles";
ContentFormatterArgument contentFormatterArgument2 =
new ContentFormatterArgument(contentFormatter, "XsltFileName");
contentFormatterArgument2.Value = "NoOp.xslt";
// Add arguments to content formatter
contentFormatter.ContentFormatterArguments.Add(
contentFormatterArgument1);
contentFormatter.ContentFormatterArguments.Add(
contentFormatterArgument2);
Dim contentFormatterArgument1 As ContentFormatterArgument = _
New ContentFormatterArgument(contentFormatter, _
"XsltBaseDirectoryPath")
contentFormatterArgument1.Value = "C:\NS\Full\XSLFiles"
Dim contentFormatterArgument2 As ContentFormatterArgument = _
New ContentFormatterArgument(contentFormatter, _
"XsltFileName")
contentFormatterArgument2.Value = "NoOp.xslt"
' Add arguments to content formatter
contentFormatter.ContentFormatterArguments.Add( _
contentFormatterArgument1)
contentFormatter.ContentFormatterArguments.Add( _
contentFormatterArgument2)
线程安全
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
开发平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
目标平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
请参阅
参考
ContentFormatterArgumentCollection Members
Microsoft.SqlServer.Management.Nmo Namespace