次の方法で共有


MigrationExcludeNetworks

[This property is no longer available for use as of Windows Server 2012.]

This property is not supported.

**Windows Server 2008 R2: **

Specifies cluster networks that should not be used during a live migration. The networks are specified by the network ID returned by the GetClusterNetworkId function, separated by semicolons. The following table summarizes the attributes of the MigrationExcludeNetworks property.

Attribute Value
Data type
Null-terminated Unicode string
Access
Read/write
Structure
CLUSPROP_SZ
Minimum
NULL
Maximum
None (but see Maximum String Size).
Default
NULL

Remarks

The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.

Examples

The property value portion of a property list entry for MigrationExcludeNetworks can be set with the following example code.

WCHAR szMigrationExcludeNetworksData[] = L"aaa54ff1-249b-4b93-b811-d43c2bf1910a;0cc1d307-479c-4ebf-81a6-0c55d4a65cc4";
CLUSPROP_SZ_DECLARE( MigrationExcludeNetworksValue, 
                     sizeof( szMigrationExcludeNetworksData ) / sizeof( WCHAR ) );

MigrationExcludeNetworksValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
MigrationExcludeNetworksValue.cbLength  = sizeof( szMigrationExcludeNetworksData );
StringCbCopy( MigrationExcludeNetworksValue.sz, 
              MigrationExcludeNetworksValue.cbLength, 
              szMigrationExcludeNetworksData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Datacenter
End of client support
None supported
End of server support
Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Datacenter

See also

Virtual Machine Common Properties

GetClusterNetworkId

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE