共用方式為


NumaNodeCollection.IsSynchronized 屬性

Gets a value that indicates whether the collection is synchronized with the instance of SQL Server.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property IsSynchronized As Boolean 
    Get
'用途
Dim instance As NumaNodeCollection 
Dim value As Boolean 

value = instance.IsSynchronized
public bool IsSynchronized { get; }
public:
virtual property bool IsSynchronized {
    bool get () sealed;
}
abstract IsSynchronized : bool 
override IsSynchronized : bool
final function get IsSynchronized () : boolean

屬性值

型別:System.Boolean
Returns a boolean value. If true, the collection is synchronized with the instance of SQL Server.

實作

ICollection.IsSynchronized

範例

The following example shows how to determine whether the NumaNodeCollection is synchronized with the instance of SQL Server.

using System;
using System.Collections.Specialized;
using Microsoft.SqlServer.Management.Smo;

namespace samples
{
    class Program
    {
        static void Main(string[] args)
        {
            Server dbServer = new Server("(local)");
            Console.WriteLine("NUMA node collection Microsoft.SqlServer.Smo" +
                "synchronized.\n",
                (dbServer.AffinityInfo.NumaNodes.IsSynchronized) ?
                "is" : "is not ");
        }
    }
}

請參閱

參考

NumaNodeCollection 類別

Microsoft.SqlServer.Management.Smo 命名空間