次の方法で共有


FullTextCatalogs プロパティ

FullTextCatalog オブジェクトのコレクションを表します。各 FullTextCatalog オブジェクトは、データベースで定義されたフルテキスト カタログを表します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(FullTextCatalog))> _
Public ReadOnly Property FullTextCatalogs As FullTextCatalogCollection
    Get
'使用
Dim instance As Database
Dim value As FullTextCatalogCollection

value = instance.FullTextCatalogs
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(FullTextCatalog))]
public FullTextCatalogCollection FullTextCatalogs { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(FullTextCatalog))]
public:
property FullTextCatalogCollection^ FullTextCatalogs {
    FullTextCatalogCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(FullTextCatalog))>]
member FullTextCatalogs : FullTextCatalogCollection
function get FullTextCatalogs () : FullTextCatalogCollection

プロパティ値

型: Microsoft.SqlServer.Management.Smo. . :: . .FullTextCatalogCollection
データベースで定義されたすべてのフルテキスト カタログを表す FullTextCatalogCollection オブジェクト。

説明

このコレクションを使用し、フルテキスト カタログ名を指定することによって、特定のフルテキスト カタログを参照できます。新しいフルテキスト カタログをコレクションに追加するには、フルテキスト カタログ コンストラクターを呼び出します。

使用例

'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server

'Reference the AdventureWorks database.
Dim db As Database
db = srv.Databases("AdventureWorks")

'Display all the full-text catalogs in the database.
Dim ftc As FullTextCatalog
For Each ftc In db.FullTextCatalogs
   Console.WriteLine(ftc.Name)
Next