다음을 통해 공유


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 개체입니다.

주의

Specific full-text catalogs can be referenced by using this collection by specifying the name of the full-text catalog. To add a new full-text catalog to the collection, call the full-text catalog constructor.

VB

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

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

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

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
$db = New-Object Microsoft.SqlServer.Management.Smo.Database
$db = $srv.Databases.Item("AdventureWorks2008R2")

Foreach ($ftc in $db.FullTextCatalogs)
{
   Write-Host $ftc.Name
}